Documentation ¶
Index ¶
- Constants
- func Create(ttl time.Duration) wfcache.StorageMaker
- type BasicStorage
- func (s *BasicStorage) BatchGet(ctx context.Context, keys []string) (results []*wfcache.CacheItem)
- func (s *BasicStorage) BatchSet(ctx context.Context, pairs map[string][]byte) error
- func (s *BasicStorage) Del(ctx context.Context, key string) error
- func (s *BasicStorage) Get(ctx context.Context, key string) *wfcache.CacheItem
- func (s *BasicStorage) Set(ctx context.Context, key string, data []byte) error
- func (s *BasicStorage) TimeToLive() time.Duration
Constants ¶
View Source
const NoTTL time.Duration = -1
Variables ¶
This section is empty.
Functions ¶
Types ¶
type BasicStorage ¶
type BasicStorage struct {
// contains filtered or unexported fields
}
func (*BasicStorage) TimeToLive ¶ added in v0.2.0
func (s *BasicStorage) TimeToLive() time.Duration
Click to show internal directories.
Click to hide internal directories.