Documentation ¶
Index ¶
- Variables
- func PeriodicallyRunGC(ctx context.Context)
- func SetupTestDB()
- func TearDownTestDB()
- type KeyNotFoundError
- type Store
- func (s Store) Delete(key string) error
- func (s Store) EachKeyAfter(start string, ptr interface{}, f func(key string) error) error
- func (s Store) EachKeyBefore(end string, ptr interface{}, f func(key string) error) error
- func (s Store) EachKeyNoValues(prefix string, f func(key string) error) error
- func (s Store) EachKeyWithPrefix(prefix string, ptr interface{}, f func(key string) error) error
- func (s Store) Get(key string, ptr interface{}) error
- func (s Store) GetExpiration(key string) (time.Duration, error)
- func (s Store) Set(key string, value interface{}) error
- func (s Store) SetWithExpiration(key string, value interface{}, expires time.Duration) error
Constants ¶
This section is empty.
Variables ¶
View Source
var StopIterating = stopper("STOP_ITERATING!")
The Each* methods stop iterating when the function passed to it returns an error, and will return that error. StopIterating stops the iteration, but the function will return nil.
Functions ¶
func PeriodicallyRunGC ¶
func SetupTestDB ¶
func SetupTestDB()
func TearDownTestDB ¶
func TearDownTestDB()
Types ¶
type KeyNotFoundError ¶
type KeyNotFoundError struct {
// contains filtered or unexported fields
}
func (KeyNotFoundError) Error ¶
func (e KeyNotFoundError) Error() string
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
func (Store) EachKeyAfter ¶
func (Store) EachKeyBefore ¶
func (Store) EachKeyNoValues ¶
func (Store) EachKeyWithPrefix ¶
Click to show internal directories.
Click to hide internal directories.