Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FilesystemData ¶
type FilesystemData struct {
// contains filtered or unexported fields
}
FilesystemData represens data in file on filesystem
type FilesystemStore ¶
type FilesystemStore struct {
// contains filtered or unexported fields
}
FileStore uses filesystem to store data
func NewFilesystem ¶
func NewFilesystem(basePath string, expiration time.Duration) *FilesystemStore
NewFilesystem create a new FilesystemStore
type InMemoryData ¶
type InMemoryData struct {
// contains filtered or unexported fields
}
InMemoryData represens data in memory store
type InMemoryStore ¶
type InMemoryStore struct {
// contains filtered or unexported fields
}
InMemoryStore uses in memory
func NewInMemoryStore ¶
func NewInMemoryStore(expiration time.Duration) *InMemoryStore
NewInMemoryStore create a new InMemoryStore
type RedisStore ¶
type RedisStore struct { Client *redis.Client // contains filtered or unexported fields }
RedisStore uses Redis
func NewRedisStore ¶
func NewRedisStore(endpoint string, port int, username, password string, expiration time.Duration) *RedisStore
NewRedisStore creates a new RedisStore. Use empty string for username & password if not password required. Set port to 0 to use default.
Click to show internal directories.
Click to hide internal directories.