Documentation
¶
Index ¶
- type Backend
- func (instance *Backend) Clear() error
- func (instance *Backend) ClearByPrefix(prefix string) error
- func (instance *Backend) Close() error
- func (instance *Backend) Decrement(key string, delta int64) (int64, error)
- func (instance *Backend) Delete(key string) error
- func (instance *Backend) DeleteMultiple(keys []string) error
- func (instance *Backend) Get(key string) ([]byte, bool, error)
- func (instance *Backend) Has(key string) (bool, error)
- func (instance *Backend) Increment(key string, delta int64) (int64, error)
- func (instance *Backend) Many(keys []string) (map[string][]byte, error)
- func (instance *Backend) Set(key string, payload []byte, ttl time.Duration) error
- func (instance *Backend) SetMultiple(items map[string][]byte, ttl time.Duration) error
- type BackendService
- func (instance *BackendService) Clear() error
- func (instance *BackendService) ClearByPrefix(prefix string) error
- func (instance *BackendService) Close() error
- func (instance *BackendService) Decrement(key string, delta int64) (int64, error)
- func (instance *BackendService) Delete(key string) error
- func (instance *BackendService) DeleteMultiple(keys []string) error
- func (instance *BackendService) Get(key string) ([]byte, bool, error)
- func (instance *BackendService) Has(key string) (bool, error)
- func (instance *BackendService) Increment(key string, delta int64) (int64, error)
- func (instance *BackendService) Many(keys []string) (map[string][]byte, error)
- func (instance *BackendService) Set(key string, payload []byte, ttl time.Duration) error
- func (instance *BackendService) SetMultiple(items map[string][]byte, ttl time.Duration) error
- func (instance *BackendService) WithContext(ctx context.Context) *Backend
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Backend ¶
type Backend struct {
// contains filtered or unexported fields
}
func BackendFromRuntime ¶
func BackendFromRuntime(runtimeInstance runtimecontract.Runtime, serviceName string) *Backend
func NewBackend ¶
func (*Backend) ClearByPrefix ¶
func (*Backend) DeleteMultiple ¶
type BackendService ¶
type BackendService struct {
// contains filtered or unexported fields
}
func NewBackendService ¶
func (*BackendService) Clear ¶
func (instance *BackendService) Clear() error
func (*BackendService) ClearByPrefix ¶
func (instance *BackendService) ClearByPrefix(prefix string) error
func (*BackendService) Close ¶
func (instance *BackendService) Close() error
func (*BackendService) Decrement ¶
func (instance *BackendService) Decrement(key string, delta int64) (int64, error)
func (*BackendService) Delete ¶
func (instance *BackendService) Delete(key string) error
func (*BackendService) DeleteMultiple ¶
func (instance *BackendService) DeleteMultiple(keys []string) error
func (*BackendService) Increment ¶
func (instance *BackendService) Increment(key string, delta int64) (int64, error)
func (*BackendService) Many ¶
func (instance *BackendService) Many(keys []string) (map[string][]byte, error)
func (*BackendService) SetMultiple ¶
func (*BackendService) WithContext ¶
func (instance *BackendService) WithContext(ctx context.Context) *Backend
Click to show internal directories.
Click to hide internal directories.