Documentation
¶
Index ¶
- type MemoryStore
- func (s *MemoryStore) Clear(_ context.Context) error
- func (s *MemoryStore) Close() error
- func (s *MemoryStore) Delete(_ context.Context, key string) error
- func (s *MemoryStore) DeleteMany(ctx context.Context, keys []string) error
- func (s *MemoryStore) Get(_ context.Context, key string) (any, error)
- func (s *MemoryStore) GetMany(ctx context.Context, keys []string) (map[string]any, error)
- func (s *MemoryStore) Set(_ context.Context, key string, value any, opts ...xcache.Option) error
- type StoreOption
- type StoreOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MemoryStore ¶
type MemoryStore struct {
// contains filtered or unexported fields
}
func NewStore ¶
func NewStore(opts ...StoreOption) *MemoryStore
func (*MemoryStore) Close ¶
func (s *MemoryStore) Close() error
func (*MemoryStore) DeleteMany ¶
func (s *MemoryStore) DeleteMany(ctx context.Context, keys []string) error
type StoreOption ¶
type StoreOption func(*StoreOptions)
func WithShards ¶
func WithShards(n uint64) StoreOption
func WithSweepInterval ¶
func WithSweepInterval(d time.Duration) StoreOption
type StoreOptions ¶
type StoreOptions struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.