Documentation
¶
Index ¶
- type Cache
- func (cache *Cache) Del(key *datastore.Key) error
- func (cache *Cache) DelMulti(keys []*datastore.Key) error
- func (cache *Cache) Get(key *datastore.Key, dst interface{}) error
- func (cache *Cache) GetMulti(keys []*datastore.Key, dst interface{}) error
- func (cache *Cache) Set(key *datastore.Key, src interface{}) error
- func (cache *Cache) SetMulti(keys []*datastore.Key, src interface{}) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cache ¶
type Cache struct {
Pool *redis.Pool
Prefix string
TTL time.Duration
ExtendTTL bool
Skip func(*datastore.Key) bool
}
Cache implement Cache interface
Click to show internal directories.
Click to hide internal directories.