postgres

package
v0.0.0-...-12c566d Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2017 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package postgres provides a postgres backed cache implementation for https://github.com/databus23/keystone

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(db *sql.DB, cleanupInterval time.Duration, table string) keystone.Cache

New creates a new cache.

The table parameter defaults to token_cache and must point to an existing datbase table conforming to the following schema:

key text PRIMARY KEY,
value text NOT NULL,
valid_until timestamp without time zone NOT NULL

Types

This section is empty.

Jump to

Keyboard shortcuts

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