mattermost-community-enterp.../vendor/github.com/redis/rueidis/cmds.go
Claude ec1f89217a Merge: Complete Mattermost Server with Community Enterprise
Full Mattermost server source with integrated Community Enterprise features.
Includes vendor directory for offline/air-gapped builds.

Structure:
- enterprise-impl/: Enterprise feature implementations
- enterprise-community/: Init files that register implementations
- enterprise/: Bridge imports (community_imports.go)
- vendor/: All dependencies for offline builds

Build (online):
  go build ./cmd/mattermost

Build (offline/air-gapped):
  go build -mod=vendor ./cmd/mattermost

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-17 23:59:07 +09:00

35 lines
1.3 KiB
Go

package rueidis
import "github.com/redis/rueidis/internal/cmds"
// Builder represents a command builder. It should only be created from the client.B() method.
type Builder = cmds.Builder
// Incomplete represents an incomplete Redis command. It should then be completed by calling Build().
type Incomplete = cmds.Incomplete
// Completed represents a completed Redis command. It should only be created from the Build() of a command builder.
type Completed = cmds.Completed
// Cacheable represents a completed Redis command which supports server-assisted client side caching,
// and it should be created by the Cache() of command builder.
type Cacheable = cmds.Cacheable
// Commands is an exported alias to []Completed.
// This allows users to store commands for later usage, for example:
//
// c, release := client.Dedicate()
// defer release()
//
// cmds := make(rueidis.Commands, 0, 10)
// for i := 0; i < 10; i++ {
// cmds = append(cmds, c.B().Set().Key(strconv.Itoa(i)).Value(strconv.Itoa(i)).Build())
// }
// for _, resp := range c.DoMulti(ctx, cmds...) {
// if err := resp.Error(); err != nil {
// panic(err)
// }
//
// However, please know that once commands are processed by the Do() or DoMulti(), they are recycled and should not be reused.
type Commands []Completed