Documentation ¶
Index ¶
- type ByteArraySerializer
- type Cache
- type Client
- type Map
- func (c *Map) Clear(ctx context.Context, ns string) error
- func (c *Map) Delete(ctx context.Context, ns, id string) (s int, err error)
- func (c *Map) Get(ctx context.Context, ns, id string) db.Result
- func (c *Map) GetAll(ctx context.Context, ns string) (*db.ResultSet, error)
- func (c *Map) GetKey(ctx context.Context, ns, id string, p *path.Path) (zero types.Entry, err error)
- func (c *Map) GetKeys(ctx context.Context, ns, id string, p []*path.Path) ([]types.Entry, error)
- func (c *Map) GetView(ctx context.Context, ns, id string) (view *types.SimpleEntryView, err error)
- func (c *Map) Insert(ctx context.Context, ns, id string, src any, ttl ...time.Duration) (s db.Stat, err error)
- func (c *Map) IsLocked(ctx context.Context, ns string, id string) (bool, error)
- func (c *Map) Lock(ctx context.Context, ns string, id string) error
- func (c *Map) NewLockContext(ctx context.Context, ns string) context.Context
- func (c *Map) SetKey(ctx context.Context, ns, id string, e types.Entry) (err error)
- func (c *Map) SetKeys(ctx context.Context, ns, id string, entries []types.Entry) (err error)
- func (c *Map) SetTTL(ctx context.Context, ns, id string, ttl time.Duration) error
- func (c *Map) Size(ctx context.Context, ns string) (int, error)
- func (c *Map) Unlock(ctx context.Context, ns string, id string, force bool) error
- func (c *Map) Update(ctx context.Context, ns, id string, src any, ttl ...time.Duration) (s db.Stat, err error)
- type Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ByteArraySerializer ¶
type ByteArraySerializer struct{}
func (*ByteArraySerializer) ID ¶
func (s *ByteArraySerializer) ID() int32
func (*ByteArraySerializer) Read ¶
func (s *ByteArraySerializer) Read(input serialization.DataInput) interface{}
func (*ByteArraySerializer) Write ¶
func (s *ByteArraySerializer) Write(output serialization.DataOutput, obj interface{})
Click to show internal directories.
Click to hide internal directories.