cache

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2016 License: MPL-2.0 Imports: 10 Imported by: 8

Documentation

Overview

Package cache provides a pluggable backend for persistent record storage.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddRecord

func AddRecord(resource *shaman.Resource) error

AddRecord adds a record to the persistent cache

func DeleteRecord

func DeleteRecord(domain string) error

DeleteRecord removes a record from the persistent cache

func Exists

func Exists() bool

Exists returns whether the default cacher exists

func GetRecord

func GetRecord(domain string) (*shaman.Resource, error)

GetRecord gets a record to the persistent cache

func Initialize

func Initialize() error

Initialize sets default cacher and initialize it

func ListRecords

func ListRecords() ([]shaman.Resource, error)

ListRecords lists all records in the persistent cache

func ResetRecords

func ResetRecords(resources *[]shaman.Resource) error

ResetRecords replaces all records in the persistent cache

func UpdateRecord

func UpdateRecord(domain string, resource *shaman.Resource) error

UpdateRecord updates a record in the persistent cache

Types

This section is empty.

Jump to

Keyboard shortcuts

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