| 1 |
Source: golang-github-renekroon-ttlcache |
| 2 |
Section: devel |
| 3 |
Priority: optional |
| 4 |
Maintainer: Debian Go Packaging Team <[email protected]> |
| 5 |
Uploaders: Sascha Steinbiss <[email protected]> |
| 6 |
Build-Depends: debhelper-compat (= 13), |
| 7 |
dh-golang, |
| 8 |
golang-any, |
| 9 |
golang-github-stretchr-testify-dev, |
| 10 |
golang-golang-x-sync-dev, |
| 11 |
golang-uber-goleak-dev |
| 12 |
Standards-Version: 4.6.1 |
| 13 |
Rules-Requires-Root: no |
| 14 |
Homepage: https://github.com/ReneKroon/ttlcache |
| 15 |
Vcs-Browser: https://salsa.debian.org/go-team/packages/golang-github-renekroon-ttlcache |
| 16 |
Vcs-Git: https://salsa.debian.org/go-team/packages/golang-github-renekroon-ttlcache.git |
| 17 |
XS-Go-Import-Path: github.com/ReneKroon/ttlcache |
| 18 |
Testsuite: autopkgtest-pkg-go |
| 19 |
|
| 20 |
Package: golang-github-renekroon-ttlcache-dev |
| 21 |
Architecture: all |
| 22 |
Depends: ${misc:Depends}, |
| 23 |
golang-github-stretchr-testify-dev, |
| 24 |
golang-golang-x-sync-dev |
| 25 |
Description: In-memory string-interface{} map with expiration for Golang |
| 26 |
TTLCache is a simple key/value cache in golang with the following functions: |
| 27 |
. |
| 28 |
- Thread-safe |
| 29 |
- Individual expiring time or global expiring time, you can choose |
| 30 |
- Auto-Extending expiration on Get |
| 31 |
- DNS style TTL, see SkipTtlExtensionOnHit(bool) |
| 32 |
- Fast and memory efficient |
| 33 |
- Can trigger callback on key expiration |
| 34 |
. |
| 35 |
Project TTLCache was forked from wunderlist/ttlcache to add extra functions |
| 36 |
not available in the original scope. The main differences are: |
| 37 |
. |
| 38 |
- An item can store any kind of object, previously, only strings could be |
| 39 |
saved |
| 40 |
- Optionally, you can add callbacks to: check if a value should expire, be |
| 41 |
notified if a value expires, and be notified when new values are added |
| 42 |
to the cache |
| 43 |
- The expiration can be either global or per item |
| 44 |
- Can exist items without expiration time |
| 45 |
- Expirations and callbacks are realtime |