Versions in this module Expand all Collapse all v2 v2.0.1 Dec 10, 2020 v2.0.0 Sep 17, 2020 Changes in this version + var ErrCacheMiss = errors.New("cache miss") + func Create(c Storage, cacheable CacheableFunc) sdkutil.Middleware + type CacheableFunc = func(method string, param ...api.Params) bool + type Key struct + Method string + Params OrderedParams + func NewKey(method string, params ...api.Params) Key + func (k Key) String() string + type OrderedParams []Param + func CreateParams(params ...api.Params) OrderedParams + func (o OrderedParams) Len() int + func (o OrderedParams) Less(i, j int) bool + func (o OrderedParams) Swap(i, j int) + type Param struct + Key string + Value interface{} + type Storage interface + Load func(key Key) (api.Response, error) + Save func(key Key, value api.Response) error Other modules containing this package github.com/tdakkota/vksdkutil github.com/tdakkota/vksdkutil/v3