🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

@tugou/cache

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@tugou/cache - npm Package Compare versions

Comparing version
1.0.1
to
1.0.2
+3
dist/config/config.default.d.ts
export declare const cache: {
store: any;
};
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.cache = void 0;
const redisStore = require("cache-manager-ioredis");
exports.cache = {
store: redisStore
};
import { ILifeCycle, IMidwayContainer } from '@midwayjs/core';
export declare class CacheConfiguration implements ILifeCycle {
private config;
app: any;
onReady(container: IMidwayContainer): Promise<void>;
onStop(): Promise<void>;
}
"use strict";
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (this && this.__metadata) || function (k, v) {
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.CacheConfiguration = void 0;
const decorator_1 = require("@midwayjs/decorator");
const path_1 = require("path");
let CacheConfiguration = class CacheConfiguration {
async onReady(container) {
console.info('[cache] ', this.config);
try {
console.info('[cache] success.');
}
catch (error) {
console.error('[cahe] fail:', error);
}
}
async onStop() {
console.info('[cache] exit.');
}
};
__decorate([
decorator_1.Config('cache'),
__metadata("design:type", Object)
], CacheConfiguration.prototype, "config", void 0);
__decorate([
decorator_1.App(),
__metadata("design:type", Object)
], CacheConfiguration.prototype, "app", void 0);
CacheConfiguration = __decorate([
decorator_1.Configuration({
namespace: 'cache',
importConfigs: [path_1.join(__dirname, 'config')]
})
], CacheConfiguration);
exports.CacheConfiguration = CacheConfiguration;
export { CacheConfiguration as Configuration } from './configuration';
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.Configuration = void 0;
var configuration_1 = require("./configuration");
Object.defineProperty(exports, "Configuration", { enumerable: true, get: function () { return configuration_1.CacheConfiguration; } });
+2
-2
{
"name": "@tugou/cache",
"version": "1.0.1",
"version": "1.0.2",
"description": "tugou midwayjs cache",

@@ -27,3 +27,3 @@ "main": "dist/index",

"license": "MIT",
"gitHead": "a8a83acd0ecbbfdd45b903bc812ae2bdbdbb781a"
"gitHead": "8b9f995d9d16d9ad48da02273d7dca82fe82127d"
}