Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@coolgk/cache

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@coolgk/cache - npm Package Compare versions

Comparing version 2.0.3 to 2.0.4

LICENSE

18

cache.d.ts
/*!
* @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;
/*!
* @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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc