Documentation ¶
Index ¶
- type Option
- type Store
- func (s *Store) Add(ctx context.Context, key string, value any, ttl time.Duration) (bool, error)
- func (s *Store) Decrement(ctx context.Context, key string, value int) (int, error)
- func (s *Store) Flush(ctx context.Context) (bool, error)
- func (s *Store) Forever(ctx context.Context, key string, value any) (bool, error)
- func (s *Store) Forget(ctx context.Context, key string) (bool, error)
- func (s *Store) Get(ctx context.Context, key string, dest any) error
- func (s *Store) GetPrefix() string
- func (s *Store) Has(ctx context.Context, key string) (bool, error)
- func (s *Store) Increment(ctx context.Context, key string, value int) (int, error)
- func (s *Store) Lock(key string, ttl time.Duration) locker.Locker
- func (s *Store) Put(ctx context.Context, key string, value any, ttl time.Duration) (bool, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
Click to show internal directories.
Click to hide internal directories.