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/entry_not_found_error.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/entry_not_found_error.go')
-rw-r--r-- | vendor/github.com/allegro/bigcache/entry_not_found_error.go | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/vendor/github.com/allegro/bigcache/entry_not_found_error.go b/vendor/github.com/allegro/bigcache/entry_not_found_error.go new file mode 100644 index 000000000..883bdc29e --- /dev/null +++ b/vendor/github.com/allegro/bigcache/entry_not_found_error.go @@ -0,0 +1,17 @@ +package bigcache + +import "fmt" + +// EntryNotFoundError is an error type struct which is returned when entry was not found for provided key +type EntryNotFoundError struct { + key string +} + +func notFound(key string) error { + return &EntryNotFoundError{key} +} + +// Error returned when entry does not exist. +func (e EntryNotFoundError) Error() string { + return fmt.Sprintf("Entry %q not found", e.key) +} |