Documentation ¶
Overview ¶
Package memory provides a lightweight in memory store for onecache Do take a look at other stores
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type InMemoryStore ¶
type InMemoryStore struct {
// contains filtered or unexported fields
}
Represents an in-memory store
func NewInMemoryStore ¶
func NewInMemoryStore() *InMemoryStore
NewInMemoryStore returns a new instance of the Inmemory store Deprecated... Use New() instead
func (*InMemoryStore) Delete ¶
func (i *InMemoryStore) Delete(key string) error
func (*InMemoryStore) Flush ¶
func (i *InMemoryStore) Flush() error
func (*InMemoryStore) GC ¶
func (i *InMemoryStore) GC()
func (*InMemoryStore) Has ¶
func (i *InMemoryStore) Has(key string) bool
type Option ¶
type Option func(i *InMemoryStore)
Option defines options for creating a memory store
func BufferSize ¶
BufferSize configures the store to allow a maximum of n
Click to show internal directories.
Click to hide internal directories.