Documentation
¶
Index ¶
Constants ¶
View Source
const (
DumpInterval = time.Second * 30
)
Variables ¶
This section is empty.
Functions ¶
func Init ¶
func Init(pse PersistenStorageAdapter)
Types ¶
type GCPStorage ¶
type GCPStorage struct {
// contains filtered or unexported fields
}
func NewGCPStorage ¶
func NewGCPStorage(bucket *storage.BucketHandle, object string) *GCPStorage
func (*GCPStorage) DumpMemcache ¶
func (s *GCPStorage) DumpMemcache(items []StorableItem) error
func (*GCPStorage) LoadMemcache ¶
func (s *GCPStorage) LoadMemcache() ([]StorableItem, error)
func (*GCPStorage) NewStorableItem ¶
func (s *GCPStorage) NewStorableItem(key, val string, expIn int64) StorableItem
type PersistenStorageAdapter ¶
type PersistenStorageAdapter interface {
NewStorableItem(key, val string, expIn int64) StorableItem
LoadMemcache() ([]StorableItem, error)
DumpMemcache([]StorableItem) error
}
type StorableItem ¶
Click to show internal directories.
Click to hide internal directories.