Documentation ¶
Index ¶
- type InMemoryCache
- func (m *InMemoryCache) Delete(ctx context.Context, key string) error
- func (m *InMemoryCache) DeleteMulti(ctx context.Context, keys []string) error
- func (m *InMemoryCache) Get(ctx context.Context, key string) (firestorm.EntityMap, error)
- func (m *InMemoryCache) GetMulti(ctx context.Context, keys []string) (map[string]firestorm.EntityMap, error)
- func (m *InMemoryCache) Set(ctx context.Context, key string, item firestorm.EntityMap) error
- func (m *InMemoryCache) SetMulti(ctx context.Context, items map[string]firestorm.EntityMap) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type InMemoryCache ¶
type InMemoryCache struct {
// contains filtered or unexported fields
}
func NewMemoryCache ¶
func NewMemoryCache(defaultExpiration, cleanupInterval time.Duration) *InMemoryCache
func (*InMemoryCache) Delete ¶
func (m *InMemoryCache) Delete(ctx context.Context, key string) error
func (*InMemoryCache) DeleteMulti ¶
func (m *InMemoryCache) DeleteMulti(ctx context.Context, keys []string) error
func (*InMemoryCache) Get ¶
func (m *InMemoryCache) Get(ctx context.Context, key string) (firestorm.EntityMap, error)
Click to show internal directories.
Click to hide internal directories.