luci: go.chromium.org/luci/server/internal Index | Files

package internal

import "go.chromium.org/luci/server/internal"

Package internal is supporting code used by server.go.

Index

Package Files

rediscache.go

type RedisBlobCache Uses

type RedisBlobCache struct {
    Prefix string // prefix to prepend to keys
}

RedisBlobCache implements caching.BlobCache using Redis.

func (*RedisBlobCache) Get Uses

func (rc *RedisBlobCache) Get(ctx context.Context, key string) ([]byte, error)

Get returns a cached item or ErrCacheMiss if it's not in the cache.

func (*RedisBlobCache) Set Uses

func (rc *RedisBlobCache) Set(ctx context.Context, key string, value []byte, exp time.Duration) error

Set unconditionally overwrites an item in the cache.

If 'exp' is zero, the item will have no expiration time.

Package internal imports 5 packages (graph) and is imported by 2 packages. Updated 2019-11-12. Refresh now. Tools for package owners.