@coolgk/cache
Advanced tools
Comparing version 2.0.3 to 2.0.4
/*! | ||
* @package @coolgk/utils | ||
* @version 2.0.3 | ||
* @link https://www.npmjs.com/package/@coolgk/utils | ||
* @version 2.1.5 | ||
* @link https://github.com/coolgk/node-utils | ||
* @license MIT | ||
* @author Daniel Gong <daniel.k.gong@gmail.com> | ||
* | ||
* Copyright (c) 2017 Daniel Gong <daniel.k.gong@gmail.com>. All rights reserved. | ||
* Licensed under the MIT License. | ||
*/ | ||
/*! | ||
* Copyright (c) 2017 Daniel Gong <daniel.k.gong@gmail.com>. All rights reserved. | ||
* Licensed under the MIT License. | ||
*/ | ||
import { RedisClient } from 'redis'; | ||
@@ -19,7 +27,7 @@ export interface ICacheClient extends RedisClient { | ||
set(name: string, value: any, expiry?: number): Promise<any>; | ||
get(name: string): Promise<{}>; | ||
delete(name: string | string[]): Promise<{}>; | ||
getSetIfNull(name: string, callback: () => any, expiry?: number): Promise<{}>; | ||
get(name: string): Promise<any>; | ||
delete(name: string | string[]): Promise<any>; | ||
getSetIfNull(name: string, callback: () => any, expiry?: number): Promise<any>; | ||
command(command: string, ...params: any[]): Promise<any>; | ||
} | ||
export default Cache; |
12
cache.js
/*! | ||
* @package @coolgk/utils | ||
* @version 2.0.3 | ||
* @link https://www.npmjs.com/package/@coolgk/utils | ||
* @version 2.1.5 | ||
* @link https://github.com/coolgk/node-utils | ||
* @license MIT | ||
* @author Daniel Gong <daniel.k.gong@gmail.com> | ||
* | ||
* Copyright (c) 2017 Daniel Gong <daniel.k.gong@gmail.com>. All rights reserved. | ||
* Licensed under the MIT License. | ||
*/ | ||
"use strict"; | ||
/*! | ||
* Copyright (c) 2017 Daniel Gong <daniel.k.gong@gmail.com>. All rights reserved. | ||
* Licensed under the MIT License. | ||
*/ | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
@@ -10,0 +18,0 @@ class Cache { |
@@ -1,1 +0,1 @@ | ||
{"name":"@coolgk/cache","version":"2.0.3","author":"Daniel Gong <daniel.k.gong@gmail.com>","homepage":"https://www.npmjs.com/package/@coolgk/utils","bugs":{"url":"https://github.com/coolgk/node-utils/issues"},"repository":{"type":"git","url":"https://github.com/coolgk/node-utils.git"},"description":"a redis wrapper","keywords":["redis","cache","typescript"],"dependencies":{"@types/redis":"^2.8.3"},"pre-commit":{"silent":false,"run":["tslint","test:precommit"]},"main":"./cache.js","types":"./cache.d.ts","license":"MIT"} | ||
{"name":"@coolgk/cache","version":"2.0.4","author":"Daniel Gong <daniel.k.gong@gmail.com>","homepage":"https://github.com/coolgk/node-utils","bugs":{"url":"https://github.com/coolgk/node-utils/issues"},"repository":{"type":"git","url":"https://github.com/coolgk/node-utils.git"},"description":"a redis wrapper","keywords":["redis","cache","typescript"],"dependencies":{"@types/redis":"^2.8.3"},"main":"./cache.js","types":"./cache.d.ts","license":"MIT"} |
@@ -8,2 +8,4 @@ | ||
a redis wrapper | ||
Report bugs here: [https://github.com/coolgk/node-utils/issues](https://github.com/coolgk/node-utils/issues) | ||
## Examples | ||
@@ -10,0 +12,0 @@ ```javascript |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
8494
5
80
146
3