Documentation ¶
Index ¶
- func LockersBuilder(options ...configs.Option) shareds.LockersBuilder
- func NewLockers(config configs.Config, options ...configs.Option) (lockers shareds.Lockers, err error)
- func NewLockersWithClient(client rueidis.Client) (lockers shareds.Lockers, err error)
- func NewStore(config configs.Config, options ...configs.Option) (store shareds.Store, err error)
- func NewStoreWithClient(client rueidis.Client) (store shareds.Store, err error)
- func NewWithClient(client rueidis.Client) (v shareds.Shared, err error)
- func Shared(options ...configs.Option) (v shareds.Shared)
- func StoreBuilder(options ...configs.Option) shareds.StoreBuilder
- type Locker
- type Lockers
- type Store
- func (store *Store) Close()
- func (store *Store) Expire(ctx context.Context, key []byte, ttl time.Duration) (err error)
- func (store *Store) Get(ctx context.Context, key []byte) (value []byte, has bool, err error)
- func (store *Store) Incr(ctx context.Context, key []byte, delta int64) (v int64, err error)
- func (store *Store) Remove(ctx context.Context, key []byte) (err error)
- func (store *Store) Set(ctx context.Context, key []byte, value []byte) (err error)
- func (store *Store) SetWithTTL(ctx context.Context, key []byte, value []byte, ttl time.Duration) (err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LockersBuilder ¶ added in v1.2.1
func LockersBuilder(options ...configs.Option) shareds.LockersBuilder
func NewLockers ¶ added in v1.2.1
func NewLockers(config configs.Config, options ...configs.Option) (lockers shareds.Lockers, err error)
NewLockers redis version must gt 7.0.5
func NewLockersWithClient ¶ added in v1.2.1
NewLockersWithClient redis version must gt 7.0.5
func NewStoreWithClient ¶ added in v1.2.1
func NewWithClient ¶ added in v1.2.1
func StoreBuilder ¶ added in v1.2.1
func StoreBuilder(options ...configs.Option) shareds.StoreBuilder
Types ¶
type Lockers ¶ added in v1.0.2
type Lockers struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.