Documentation
¶
Overview ¶
Package ems provides an expiring memory store
Package ems provides an expiring memory store
Index ¶
- type Element
- type ExpiringMemoryStore
- func (store *ExpiringMemoryStore) Clear()
- func (store *ExpiringMemoryStore) CountActive() int
- func (store *ExpiringMemoryStore) CountAll() int
- func (store *ExpiringMemoryStore) Exists(name string) bool
- func (store *ExpiringMemoryStore) Read(name string) (string, error)
- func (store *ExpiringMemoryStore) Remove(name string)
- func (store *ExpiringMemoryStore) Write(name string, value string)
- func (store *ExpiringMemoryStore) WriteWithExpiration(name string, value string, expiresIn int64)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Element ¶
type Element struct {
// contains filtered or unexported fields
}
func NewElement ¶
type ExpiringMemoryStore ¶
type ExpiringMemoryStore struct {
// contains filtered or unexported fields
}
func NewExpiringMemoryStore ¶
func NewExpiringMemoryStore() *ExpiringMemoryStore
func (*ExpiringMemoryStore) Clear ¶
func (store *ExpiringMemoryStore) Clear()
func (*ExpiringMemoryStore) CountActive ¶
func (store *ExpiringMemoryStore) CountActive() int
func (*ExpiringMemoryStore) CountAll ¶
func (store *ExpiringMemoryStore) CountAll() int
func (*ExpiringMemoryStore) Exists ¶
func (store *ExpiringMemoryStore) Exists(name string) bool
func (*ExpiringMemoryStore) Read ¶
func (store *ExpiringMemoryStore) Read(name string) (string, error)
func (*ExpiringMemoryStore) Remove ¶
func (store *ExpiringMemoryStore) Remove(name string)
func (*ExpiringMemoryStore) Write ¶
func (store *ExpiringMemoryStore) Write(name string, value string)
func (*ExpiringMemoryStore) WriteWithExpiration ¶
func (store *ExpiringMemoryStore) WriteWithExpiration(name string, value string, expiresIn int64)
Click to show internal directories.
Click to hide internal directories.