Unverified Commit 05788492 authored by Raúl Kripalani's avatar Raúl Kripalani Committed by GitHub

Merge pull request #118 from raulk/master

Splinter TTLDatastore interface into TTL + Datastore
parents cd4c340c 956ee887
3.6.0: Qmdaa4JxUkSS7yuV4tbfe3jdq32dUFGrHbjqRwkthTcvZy
3.6.1: QmUadX5EcvrBmxAV9sE7wUWtWSqxns5K84qKJBixmcT1w9
......@@ -159,7 +159,11 @@ func DiskUsage(d Datastore) (uint64, error) {
// support expiring entries.
type TTLDatastore interface {
Datastore
TTL
}
// TTL encapulates the methods that deal with entries with time-to-live.
type TTL interface {
PutWithTTL(key Key, value []byte, ttl time.Duration) error
SetTTL(key Key, ttl time.Duration) error
GetExpiration(key Key) (time.Time, error)
......
......@@ -37,6 +37,6 @@
"license": "MIT",
"name": "go-datastore",
"releaseCmd": "git commit -a -m \"gx publish $VERSION\"",
"version": "3.6.0"
"version": "3.6.1"
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment