0.1.0 • Published 6 years ago

simache v0.1.0

Weekly downloads
3
License
Apache 2.0
Repository
github
Last release
6 years ago

simache travis npm downloads javascript style guide

A simple in-memory cache.

install

To use this module directly , install it:

npm install simache

usage

const Simache=require('simache')
const user={
    "uid":"69fbfdb1-a84d-4903-aa7e-f5268578e5be",
    "name":"Bill",
    "avatar":"https://www.gravatar.com/avatar/0",
    ...
}        
const simache=new Simcache()
simache.set('69fbfdb1-a84d-4903-aa7e-f5268578e5be',user)
...
const retrieved=simache.get('69fbfdb1-a84d-4903-aa7e-f5268578e5be')

contributing

  • Fork it!
  • Create your feature branch: git checkout -b my-new-feature
  • Commit your changes: git commit -am 'Add some feature'
  • Push to the branch: git push origin my-new-feature
  • Submit a pull request

license

Copyright (c) 2018 Min Li

This program is free software: you can redistribute it and/or modify it under the terms of the Apache License Version 2.0 as published by Apache Software Foundation.