vegvisir/pkg/cache/datastore.go
Piotr Biernat a0f162b91c
All checks were successful
continuous-integration/drone/tag Build is passing
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing
Rebuild of cache module:
- Added new "fail-safe" memory-datasource
 - Moved some logic from Server to Router
2021-07-24 17:46:22 +02:00

19 lines
534 B
Go

// ___ ____ ___ ___
// \ \ / / | _ | __| \ \ / / || | __ || || _ |
// \ \/ / |___ | |__ \ \/ / || |___ || ||___|
// \ / | _ | _ | \ / || __ | || ||\\
// \/ |___ |___ | \/ || ____| || || \\
//
// Copyright (c) 2021 Piotr Biernat. https://pbiernat.dev. MIT License
// Repo: https://git.pbiernat.dev/golang/vegvisir
package cache
type CacheDatastore interface {
SetKey(string, interface{}, int) error
GetKey(string) (interface{}, error)
IsConnected() bool
}