BVB Source Codes

reactide Show cache.js Source code

Return Download reactide: download cache.js Source code - Download reactide Source code - Type:.js
  1. 'use strict';
  2.  
  3.  
  4. var Cache = module.exports = function Cache() {
  5.   this._cache = {};
  6. };
  7.  
  8.  
  9. Cache.prototype.put = function Cache_put(key, value) {
  10.   this._cache[key] = value;
  11. };
  12.  
  13.  
  14. Cache.prototype.get = function Cache_get(key) {
  15.   return this._cache[key];
  16. };
  17.  
  18.  
  19. Cache.prototype.del = function Cache_del(key) {
  20.   delete this._cache[key];
  21. };
  22.  
  23.  
  24. Cache.prototype.clear = function Cache_clear() {
  25.   this._cache = {};
  26. };
  27.  
downloadcache.js Source code - Download reactide Source code
Related Source Codes/Software:
rkt - rkt is a pod-native container engine for Linux. It... 2017-06-11
uWebSockets - Tiny WebSockets https://for... 2017-06-11
realworld - TodoMVC for the RealWorld - Exemplary fullstack Me... 2017-06-11
goreplay - GoReplay is an open-source tool for capturing and ... 2017-06-10
pyenv - Simple Python version management 2017-06-10
postal - 2017-06-11
CRYENGINE - CRYENGINE is a powerful real-time game development... 2017-06-11
reactide - Reactide is the first dedicated IDE for React web ... 2017-06-11
redux-saga - An alternative side effect model for Redux apps ... 2017-06-10
angular-starter - 2017-06-10

 Back to top