Documentation
¶
Index ¶
- Constants
- Variables
- type Options
- type Store
- func (s *Store) Clear(ctx context.Context) error
- func (s *Store) ClearPrefix(ctx context.Context, prefix string) error
- func (s *Store) Close() error
- func (s *Store) Delete(ctx context.Context, key string) error
- func (s *Store) Get(ctx context.Context, key string) ([]byte, bool, error)
- func (s *Store) GetMulti(ctx context.Context, keys []string) (map[string][]byte, error)
- func (s *Store) Has(ctx context.Context, key string) (bool, error)
- func (s *Store) Incr(ctx context.Context, key string, delta int64, ttl time.Duration) (int64, error)
- func (s *Store) Len() int
- func (s *Store) Ping(ctx context.Context) error
- func (s *Store) Set(ctx context.Context, key string, value []byte, ttl time.Duration) error
Constants ¶
View Source
const ( DefaultPoolSize = 8 DefaultTimeout = 3 * time.Second DefaultScanCount = 500 )
Variables ¶
View Source
var ( ErrProtocol = errors.New("coyote/cache/redis: unexpected reply from the server") ErrServer = errors.New("coyote/cache/redis: the server refused the command") )
Functions ¶
This section is empty.
Types ¶
Click to show internal directories.
Click to hide internal directories.