Documentation ¶
Index ¶
- type Memory
- func (b *Memory[T]) All(ctx context.Context) (map[string]T, error)
- func (b *Memory[T]) Del(ctx context.Context, key string) (int64, error)
- func (b *Memory[T]) Get(ctx context.Context, key string) (T, error)
- func (b *Memory[T]) Has(ctx context.Context, key string) (bool, error)
- func (b *Memory[T]) Index() string
- func (b *Memory[T]) Len(ctx context.Context) (int64, error)
- func (b *Memory[T]) Set(ctx context.Context, key string, item T) (int64, error)
- type Redis
- func (b *Redis) All(ctx context.Context) (map[string]string, error)
- func (b *Redis) Del(ctx context.Context, field string) (int64, error)
- func (b *Redis) Get(ctx context.Context, field string) (string, error)
- func (b *Redis) Has(ctx context.Context, field string) (bool, error)
- func (b *Redis) Index() string
- func (b *Redis) Len(ctx context.Context) (int64, error)
- func (b *Redis) Lock(ctx context.Context) error
- func (b *Redis) Set(ctx context.Context, field string, value string) (int64, error)
- func (b *Redis) Unlock(ctx context.Context)
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.