cache

package
v0.7.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 5, 2020 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Overview

Package cache is a pomerium service that handles the storage of user session state. It communicates over RPC with other pomerium services, and can be configured to use a number of different backend cache stores.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cache

type Cache struct {
	// contains filtered or unexported fields
}

Cache represents the cache service. The cache service is a simple interface for storing keyed blobs (bytes) of unstructured data.

func New

func New(opts config.Options) (*Cache, error)

New creates a new cache service.

func (*Cache) Close

func (c *Cache) Close() error

Close shuts down the underlying cache store, services, or both -- if any.

func (*Cache) Get

func (c *Cache) Get(ctx context.Context, in *cache.GetRequest) (*cache.GetReply, error)

Get retrieves a key the cache store and returns the value, if found.

func (*Cache) Set

func (c *Cache) Set(ctx context.Context, in *cache.SetRequest) (*cache.SetReply, error)

Set persists a key value pair in the cache store.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL