Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultCacheDir = "/tmp"

    DefaultCacheDir ...

    Functions

    This section is empty.

    Types

    type Config

    type Config struct {
    	CacheDir string
    }

      Config ...

      type FileCache

      type FileCache struct {
      	// contains filtered or unexported fields
      }

        FileCache ...

        func NewFileCache

        func NewFileCache(config *Config) (*FileCache, error)

          NewFileCache ...

          func (*FileCache) Get

          func (f *FileCache) Get(key string, dst interface{}) error

            Get reads item from cache

            func (*FileCache) Set

            func (f *FileCache) Set(key string, data interface{}, expire time.Duration) error

              Set writes item to cache

              Source Files