Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request: Add TTL support to keys #20

Open
ftKnox opened this issue Nov 12, 2019 · 2 comments
Open

Feature Request: Add TTL support to keys #20

ftKnox opened this issue Nov 12, 2019 · 2 comments
Labels
enhancement New feature or request

Comments

@ftKnox
Copy link

ftKnox commented Nov 12, 2019

Have you considered adding support for setting TTL values on keys? Would be nice to have this. Maybe via something like:

func (s *Store) InsertTTL(key, data interface{}, ttl time.Duration) {...}
func (s *Store) UpdateTTL(key, data interface{}, ttl time.Duration) {...}
func (s *Store) UpsertTTL(key, data interface{}, ttl time.Duration) {...}

Ref: https://github.com/dgraph-io/badger#setting-time-to-livettl-and-user-metadata-on-keys

@timshannon timshannon added the enhancement New feature or request label Nov 12, 2019
@killswitch-GUI
Copy link

This would be amazing.

@PD-Pramila
Copy link

Any update on adding this TTL feature on keys?
Also, are there any plans to add:

  1. Metadata on keys and then supporting that metadata value to filter search results.
  2. Batch processing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants