Skip to content

Commit

Permalink
📝 Describe private members
Browse files Browse the repository at this point in the history
  • Loading branch information
zswang committed Sep 13, 2018
1 parent 7d3ec92 commit 4d7f232
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions lib/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import * as redis from 'redis';
* jfetchs redis store
* @author
* zswang (http://weibo.com/zswang)
* @version 0.0.1
* @version 0.0.2
* @date 2018-09-13
*/
export interface IRedisStoreOptions {
Expand All @@ -24,8 +24,8 @@ export interface IRedisStoreOptions {
debug?: boolean | string;
}
export declare class RedisStore<T> implements ICacheStore<T> {
options: IRedisStoreOptions;
redisClient: redis.RedisClient;
// private options;
// private redisClient;
constructor(options: IRedisStoreOptions);
/**
* 加载缓存数据 load data from cache
Expand Down
6 changes: 3 additions & 3 deletions lib/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import * as redis from 'redis'
* jfetchs redis store
* @author
* zswang (http://weibo.com/zswang)
* @version 0.0.1
* @version 0.0.2
* @date 2018-09-13
*/
export interface IRedisStoreOptions {
Expand All @@ -24,8 +24,8 @@ export interface IRedisStoreOptions {
debug?: boolean | string
}
export class RedisStore<T> implements ICacheStore<T> {
options: IRedisStoreOptions
redisClient: redis.RedisClient
private options: IRedisStoreOptions
private redisClient: redis.RedisClient
constructor(options: IRedisStoreOptions) {
this.options = {
prefix: 'jfetchs:store',
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "jfetchs-redis",
"version": "0.0.1",
"version": "0.0.2",
"description": "jfetchs redis store",
"main": "lib/index.js",
"typings": "lib/index.d.ts",
Expand Down
4 changes: 2 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ export interface IRedisStoreOptions {
}

export class RedisStore<T> implements ICacheStore<T> {
options: IRedisStoreOptions
redisClient: redis.RedisClient
private options: IRedisStoreOptions
private redisClient: redis.RedisClient
constructor(options: IRedisStoreOptions) {
this.options = {
prefix: 'jfetchs:store',
Expand Down

0 comments on commit 4d7f232

Please sign in to comment.