diff options
author | Péter Szilágyi <peterke@gmail.com> | 2018-11-13 00:47:34 +0800 |
---|---|---|
committer | Péter Szilágyi <peterke@gmail.com> | 2018-11-15 18:22:13 +0800 |
commit | 434dd5bc0067cdf604d84426df9086015721dd36 (patch) | |
tree | 279d85e32a36b8804d60c5a4b83b444514850782 /vendor/github.com/allegro/bigcache/clock.go | |
parent | 9a000601c6c4e4f8134caedba1957ffe28d2b659 (diff) | |
download | go-tangerine-434dd5bc0067cdf604d84426df9086015721dd36.tar go-tangerine-434dd5bc0067cdf604d84426df9086015721dd36.tar.gz go-tangerine-434dd5bc0067cdf604d84426df9086015721dd36.tar.bz2 go-tangerine-434dd5bc0067cdf604d84426df9086015721dd36.tar.lz go-tangerine-434dd5bc0067cdf604d84426df9086015721dd36.tar.xz go-tangerine-434dd5bc0067cdf604d84426df9086015721dd36.tar.zst go-tangerine-434dd5bc0067cdf604d84426df9086015721dd36.zip |
cmd, core, eth, light, trie: add trie read caching layer
Diffstat (limited to 'vendor/github.com/allegro/bigcache/clock.go')
-rw-r--r-- | vendor/github.com/allegro/bigcache/clock.go | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/vendor/github.com/allegro/bigcache/clock.go b/vendor/github.com/allegro/bigcache/clock.go new file mode 100644 index 000000000..f8b535e13 --- /dev/null +++ b/vendor/github.com/allegro/bigcache/clock.go @@ -0,0 +1,14 @@ +package bigcache + +import "time" + +type clock interface { + epoch() int64 +} + +type systemClock struct { +} + +func (c systemClock) epoch() int64 { + return time.Now().Unix() +} |