|
Last change
on this file was 9af201e, checked in by MBK <marija.karapandzova@…>, 12 days ago |
|
Fix frontend appearance
|
-
Property mode
set to
100644
|
|
File size:
409 bytes
|
| Line | |
|---|
| 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 | };
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.