Skip to content

trek10inc/lambda-local-cache

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

12 Commits

Repository files navigation

lambda-local-cache for JS objects

Installation :

npm install lambda-local-cache --save 

How to use

constlambdaLocalCache=require('lambda-local-cache');letcollectionName='COLLECTION_NAME'letoptions={indexes: ['index1','index2'],// first index name is treated as primary indexexpire : 5// in minutes};letcache=newlambdaLocalCache(collectionName,options);// METHODScache.set(value,expire);cache.get('key','indexName');cache.remove('key','indexName');cache.clear(); ## LicenseMIT

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •