@dazejs/framework
Version:
Daze.js - A powerful web framework for Node.js
18 lines (15 loc) • 348 B
text/typescript
import { Provide, Provider, AppendAgent } from '../../../decorators';
import { Cache } from '../../../supports/cache';
import { app } from '../../../helpers';
()
()
export class CacheProvider{
(Cache)
_cache() {
return new Cache();
}
('cache')
_cacheAlias() {
return app().get(Cache);
}
}