Documentation ¶
Index ¶
- type Cache
- func (c *Cache) ClearAll() error
- func (c *Cache) Close() error
- func (c *Cache) Decr(key string) error
- func (c *Cache) Delete(key string) error
- func (c *Cache) Get(key string, val interface{}) error
- func (c *Cache) Incr(key string) error
- func (c *Cache) IsExist(key string) bool
- func (c *Cache) ListKey(req *cache.ListKeyRequest) (*cache.ListKeyResponse, error)
- func (c *Cache) Put(key string, val interface{}) error
- func (c *Cache) PutWithTTL(key string, val interface{}, ttl time.Duration) error
- func (c *Cache) SetDefaultTTL(ttl time.Duration)
- func (c *Cache) WithContext(ctx context.Context) cache.Cache
- type Config
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cache ¶ added in v0.3.1
type Cache struct {
// contains filtered or unexported fields
}
Cache 内存缓存
func (*Cache) ListKey ¶ added in v0.5.1
func (c *Cache) ListKey(req *cache.ListKeyRequest) (*cache.ListKeyResponse, error)
ListKey todo
func (*Cache) PutWithTTL ¶ added in v0.3.1
PutWithTTL 指定TTL
func (*Cache) SetDefaultTTL ¶ added in v0.3.1
SetDefaultTTL 修复默认TTL
Click to show internal directories.
Click to hide internal directories.