Documentation ¶
Index ¶
- type Redis
- func (s *Redis) Card(itemID string) (int, error)
- func (r *Redis) Clear() error
- func (r *Redis) Evict(ctx context.Context)
- func (r *Redis) Exist(itemID string) (bool, error)
- func (r *Redis) Len() (int, error)
- func (r *Redis) MaxSize() int64
- func (r *Redis) NewReader(item sdk.CDNItem, format sdk.CDNReaderFormat, from int64, size uint, ...) io.ReadCloser
- func (r *Redis) NewWriter(itemID string) io.WriteCloser
- func (r *Redis) Remove(itemIDs []string) error
- func (r *Redis) RemoveOldest() error
- func (r *Redis) Size() (int64, error)
- func (r *Redis) Status(ctx context.Context) []sdk.MonitoringStatusLine
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Redis ¶
type Redis struct {
// contains filtered or unexported fields
}
func NewRedisLRU ¶
func NewRedisLRU(db *gorp.DbMap, maxSize int64, host string, password string, dbindex int) (*Redis, error)
NewRedisLRU instanciates a new Redis LRU
func (*Redis) NewReader ¶
func (r *Redis) NewReader(item sdk.CDNItem, format sdk.CDNReaderFormat, from int64, size uint, sort int64) io.ReadCloser
NewReader instanciates a new reader
func (*Redis) NewWriter ¶
func (r *Redis) NewWriter(itemID string) io.WriteCloser
NewWriter instanciates a new writer
func (*Redis) RemoveOldest ¶
RemoveOldest removes the oldest entry
Click to show internal directories.
Click to hide internal directories.