+
Skip to content

j1fig/cacha

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cacha

A simple, naive, but understood cache.

Emulates the most basic REDIS APIs and helps me as I learn Elixir.

Installation

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

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

And then add it to your supervision tree with:

defmodule YourApp.Application do
  use Application

  @impl true
  def start(_type, _args) do
    children = [
      ...,
      Cacha.Server,
      ...
    ]

    opts = [strategy: :one_for_one, name: YourApp.Supervisor]
    Supervisor.start_link(children, opts)
  end

Wishlist

  • Key list command.
  • Expiries / TTL support.
  • Dump mode.
  • AOF flush mode.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载