https://github.com/zotonic/depcache
An in-memory caching server for Erlang
https://github.com/zotonic/depcache
Last synced: 10 months ago
JSON representation
An in-memory caching server for Erlang
- Host: GitHub
- URL: https://github.com/zotonic/depcache
- Owner: zotonic
- License: apache-2.0
- Created: 2014-05-20T07:31:44.000Z (about 12 years ago)
- Default Branch: master
- Last Pushed: 2025-01-27T07:58:49.000Z (over 1 year ago)
- Last Synced: 2025-07-24T01:34:57.463Z (11 months ago)
- Language: Erlang
- Size: 104 KB
- Stars: 20
- Watchers: 7
- Forks: 7
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README

[](https://www.apache.org/licenses/LICENSE-2.0)
depcache
========
depcache is an in-memory caching server for Erlang with dependency
checks, cache expiration and local in process memoization of
lookups. It is used by the Zotonic project for all memory-related
caching strategies.
For a detailed explanation, see the chapter on depcache in the book
`The Performance of Open Source Applications` on [this page](http://aosabook.org/en/posa/zotonic.html#posa.zotonic.depcache).
Usage
-----
Add the Hex package in your config file https://hex.pm/packages/depcache
Start a depcache server like this:
```
{ok, Server} = depcache:start_link([]).
```
Now you can get and set values using the returned `Server` pid.
## Documentation generation
### Edoc
#### Generate public API
`rebar3 edoc`
#### Generate private API
`rebar3 as edoc_private edoc`
### ExDoc
`rebar3 ex_doc --logo doc/img/logo.png --output edoc`
License
-------
Like Zotonic, depcache is licensed under the Apache 2.0 license.