eko / gocache

☔️ A complete Go cache library that brings you multiple ways of managing your caches
https://vincent.composieux.fr/article/i-wrote-gocache-a-complete-and-extensible-go-cache-library/
MIT License
2.42k stars 192 forks source link

How to create a key that never expires #161

Open OneSeven opened 2 years ago

OneSeven commented 2 years ago

Please describe the a concise description and fill out the details below. It will help others efficiently understand your request and get to an answer instead of repeated back and forth. Providing a minimal, complete and verifiable example will further increase your chances that someone can help.

Steps for Reproduction

  1. Set up the following "xxxx" value in the config.yaml configuration file
  2. Launch binary with the following arguments
  3. Step Two
  4. Step Three

Expected behavior: Create a key that does not expire Actual behavior: The TTL type only supports time.Duration and cannot pass in negative values Platforms:

Include browser, operating system and respective versions

Versions: 3.1.1 Which versions are you running?