Documentation ¶ Index ¶ Variables func New(ctx context.Context, database db.DB, name string, timeToLive time.Duration, ...) db.Table Constants ¶ This section is empty. Variables ¶ View Source var ( // PrunePointerKey is the key of the key-value pair which we can use to // query the current prune pointer. This will always stored PrunePointerKey = "prunePointer" ) Functions ¶ func New ¶ func New(ctx context.Context, database db.DB, name string, timeToLive time.Duration, pruneInterval time.Duration) db.Table New returns a new ttl wrapper over the given database. The underlying database cannot have any database has a prefix of `ttl_`. Types ¶ This section is empty. Source Files ¶ View all Source files ttl.go Click to show internal directories. Click to hide internal directories.