Skip to content

Storing values against key in memory for given time

Notifications You must be signed in to change notification settings

cleverbunny/memfish

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Memfish

memfish-logo

Memfish provides you a way to store values against the key for a short period of time (20 mins by default)

Memfish stands for memory of a fish. There is a theory that fish has a short memory span, around 3 seconds. However, recent research shows that potentially that's not true and fish can be trained to remember for up to 5 months.

That justifies us calling this library Memfish and relate to a fish which is training the memory and remembers things for 20 mins.

Installation

The package can be installed by adding memfish to your list of dependencies in mix.exs:

def deps do
  [
    {:memfish, "~> 0.1.0"}
  ]
end

To start memfish process before your application add to your mix.exs

def application do
  [
    extra_applications: [:memfish]
  ]
end

The docs can be found at https://hexdocs.pm/memfish.

Usecase

We use this library to provide an ability to remember jwt tokens for a short period of time and forget them once they have been used or expired.

About

Storing values against key in memory for given time

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages