Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type API ¶
type API interface { Set(k string, v string, ttl time.Duration) error Get(k string) (string, error) Delete(k string) error }
StoreAPI abstracts the storage backend.
type DummyStore ¶
type DummyStore struct {
// contains filtered or unexported fields
}
func (*DummyStore) Delete ¶
func (store *DummyStore) Delete(k string) error
type FileStore ¶
type FileStore struct { *Store // contains filtered or unexported fields }
DataStore represents the conntection to the Google Cloud Datastore.
func NewFileStore ¶
type Internal ¶
type Internal struct { *Store // contains filtered or unexported fields }
Internal represents the internal memstore
func NewInternalStore ¶
NewInternalStore returns a new initialized store with a 60s TTL
func (*Internal) NumEntries ¶
NumEntries returns the number of entries currently in the store
type Redis ¶
type Redis struct { *Store // contains filtered or unexported fields }
Redis represents a Redis-based backing store.
func NewRedisStore ¶
func (*Redis) WithPrefix ¶
Click to show internal directories.
Click to hide internal directories.