Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddRemoteCache ¶ added in v0.3.5
func RemoteCacheEnabled ¶ added in v0.3.3
func RemoveRemoteCache ¶ added in v0.3.5
Types ¶
type CacheProvider ¶ added in v0.3.3
type CacheProvider struct { BucketName string `mapstructure:"bucketname"` Region string `mapstructure:"region"` }
CacheProvider is the configuration for the cache provider when using a remote cache
type FileBasedCache ¶
type FileBasedCache struct {
// contains filtered or unexported fields
}
func (*FileBasedCache) Exists ¶
func (*FileBasedCache) Exists(key string) bool
func (*FileBasedCache) IsCacheDisabled ¶ added in v0.2.8
func (f *FileBasedCache) IsCacheDisabled() bool
func (*FileBasedCache) List ¶ added in v0.3.3
func (*FileBasedCache) List() ([]string, error)
type ICache ¶
type ICache interface { Store(key string, data string) error Load(key string) (string, error) List() ([]string, error) Exists(key string) bool IsCacheDisabled() bool }
func NewS3Cache ¶ added in v0.3.3
type S3Cache ¶ added in v0.3.3
type S3Cache struct {
// contains filtered or unexported fields
}
Generate ICache implementation
func (*S3Cache) IsCacheDisabled ¶ added in v0.3.3
Click to show internal directories.
Click to hide internal directories.