Documentation ¶
Index ¶
- Variables
- type Cache
- func (c *Cache[K, V]) AddOrUpdate(k K, v V) error
- func (c *Cache[K, V]) Close() error
- func (c *Cache[K, V]) Delete(k K) error
- func (c *Cache[K, V]) Get(k K) (V, bool)
- func (c *Cache[K, V]) Name() string
- func (c *Cache[K, V]) Subscribe() (*broadcaster.Listener[*event.Event], error)
- func (c *Cache[K, V]) Unsubscribe(l *broadcaster.Listener[*event.Event]) error
- func (c *Cache[K, V]) Update(k K, v V) error
- type Client
- type Service
- type Setter
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrStopped = errors.New("cache channel stopped")
Functions ¶
This section is empty.
Types ¶
type Cache ¶
type Cache[K comparable, V any] struct { // contains filtered or unexported fields }
func (*Cache[K, V]) AddOrUpdate ¶
func (*Cache[K, V]) Unsubscribe ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) ListenerForEvents ¶
type Service ¶
func NewService ¶
Click to show internal directories.
Click to hide internal directories.