Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrCanceled = errors.New("operation was canceled")
)
View Source
var InMemoryStoreClass = reflect.TypeOf((*implInMemoryStore)(nil))
Functions ¶
func NewDefault ¶
func NewDefault(name string) *implInMemoryStore
func ObjectType ¶
func OpenDatabase ¶
Types ¶
type Option ¶
type Option interface {
// contains filtered or unexported methods
}
Option configures memory storage using the functional options paradigm popularized by Rob Pike and Dave Cheney. If you're unfamiliar with this style, see https://commandcenter.blogspot.com/2014/01/self-referential-functions-and-design.html and https://dave.cheney.net/2014/10/17/functional-options-for-friendly-apis.
func WithCleanupInterval ¶
func WithDefaultExpiration ¶
Click to show internal directories.
Click to hide internal directories.