"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.Cache = exports.CACHE_DECORATOR = void 0;
const common_1 = require("@nestjs/common");
exports.CACHE_DECORATOR = 'CACHE_DECORATOR';
const Cache = ({ key, ttl, instance }) => {
    return (0, common_1.applyDecorators)((0, common_1.SetMetadata)(exports.CACHE_DECORATOR, {
        key,
        ttl,
        instance: instance || 'business',
    }));
};
exports.Cache = Cache;
//# sourceMappingURL=cache.decorator.js.map