Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrCacheMiss = errors.New("gphotos: cache miss")
ErrCacheMiss is returned when a object is not found in cache.
Functions ¶
This section is empty.
Types ¶
type CachitaCache ¶
type CachitaCache struct {
// contains filtered or unexported fields
}
CachitaCache implements Cache with `gadelkareem/cachita` package.
func NewCachitaCache ¶
func NewCachitaCache() *CachitaCache
func (*CachitaCache) GetAlbum ¶
func (c *CachitaCache) GetAlbum(ctx context.Context, title string) (*photoslibrary.Album, error)
Get reads an object data from the cache.
func (*CachitaCache) InvalidateAlbum ¶
func (c *CachitaCache) InvalidateAlbum(ctx context.Context, title string) error
InvalidateAlbum removes the specified Album from the cache.
Click to show internal directories.
Click to hide internal directories.