Documentation ¶
Index ¶
- Constants
- func FreeCache(config Config) *freecache.Cache
- type Cache
- func (obj *Cache) Close(_ context.Context) error
- func (obj *Cache) Delete(ctx context.Context, key string) error
- func (obj *Cache) Exists(ctx context.Context, key string) error
- func (obj *Cache) Get(ctx context.Context, key string) (string, error)
- func (obj *Cache) GetAndDelete(ctx context.Context, key string) (string, error)
- func (obj *Cache) Iterator(ctx context.Context, fn func(ctx context.Context, key, value string) bool) error
- func (obj *Cache) Set(ctx context.Context, key, value string, expiration ...time.Duration) error
- type Config
Constants ¶
View Source
const (
ErrNotFound = errors.String("not found")
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.