koatty_store
Advanced tools
Comparing version 1.0.2 to 1.1.0
@@ -1,2 +0,3 @@ | ||
import { RedisStore } from "./redis"; | ||
import { RedisStore, StoreOptions } from "./redis"; | ||
export { RedisStore, RedisClient, StoreOptions } from "./redis"; | ||
/** | ||
@@ -6,18 +7,2 @@ * | ||
* @export | ||
* @interface StoreOptions | ||
*/ | ||
export interface StoreOptions { | ||
key_prefix: string; | ||
host: string; | ||
port: number; | ||
auth?: string; | ||
db?: number; | ||
timeout?: number; | ||
pool_size?: number; | ||
conn_timeout?: number; | ||
} | ||
/** | ||
* | ||
* | ||
* @export | ||
* @class Store | ||
@@ -24,0 +9,0 @@ */ |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.Store = void 0; | ||
exports.Store = exports.RedisStore = void 0; | ||
/* | ||
@@ -8,3 +8,3 @@ * @Author: richen | ||
* @LastEditors: linyyyang<linyyyang@tencent.com> | ||
* @LastEditTime: 2020-12-01 17:37:40 | ||
* @LastEditTime: 2020-12-01 17:49:31 | ||
* @License: BSD (3-Clause) | ||
@@ -14,2 +14,4 @@ * @Copyright (c) - <richenlin(at)gmail.com> | ||
const redis_1 = require("./redis"); | ||
var redis_2 = require("./redis"); | ||
Object.defineProperty(exports, "RedisStore", { enumerable: true, get: function () { return redis_2.RedisStore; } }); | ||
/** | ||
@@ -16,0 +18,0 @@ * |
@@ -1,2 +0,1 @@ | ||
import { StoreOptions } from "./index"; | ||
import IORedis from "ioredis"; | ||
@@ -8,2 +7,27 @@ import genericPool from "generic-pool"; | ||
* @export | ||
* @interface RedisClient | ||
* @extends {IORedis.Redis} | ||
*/ | ||
export interface RedisClient extends IORedis.Redis { | ||
} | ||
/** | ||
* | ||
* | ||
* @export | ||
* @interface StoreOptions | ||
*/ | ||
export interface StoreOptions { | ||
key_prefix: string; | ||
host: string; | ||
port: number; | ||
auth?: string; | ||
db?: number; | ||
timeout?: number; | ||
pool_size?: number; | ||
conn_timeout?: number; | ||
} | ||
/** | ||
* | ||
* | ||
* @export | ||
* @class RedisStore | ||
@@ -10,0 +34,0 @@ */ |
@@ -9,3 +9,3 @@ "use strict"; | ||
* @LastEditors: linyyyang<linyyyang@tencent.com> | ||
* @LastEditTime: 2020-12-01 17:37:59 | ||
* @LastEditTime: 2020-12-01 17:52:56 | ||
* @License: BSD (3-Clause) | ||
@@ -12,0 +12,0 @@ * @Copyright (c) - <richenlin(at)gmail.com> |
{ | ||
"name": "koatty_store", | ||
"version": "1.0.2", | ||
"version": "1.1.0", | ||
"description": "Cache store for koatty.", | ||
@@ -5,0 +5,0 @@ "scripts": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
85721
986