Comparing version 0.1.0-beta-57 to 0.1.0-beta-58
@@ -26,3 +26,3 @@ { | ||
"interface/requestHooks": "@{framework}/interface/requestHooks", | ||
"interface/cache": "@{framework}/interface/storage", | ||
"interface/storage": "@{framework}/interface/storage", | ||
@@ -29,0 +29,0 @@ "interface/controller": "@{framework}/interface/controller", |
@@ -5,3 +5,3 @@ "use strict"; | ||
Type = di.load('typejs'), | ||
CacheInterface = di.load('interface/cache'), | ||
StorageInterface = di.load('interface/storage'), | ||
error = di.load('error'), | ||
@@ -20,3 +20,3 @@ core = di.load('core'), | ||
*/ | ||
MemoryCache = CacheInterface.inherit({ | ||
MemoryCache = StorageInterface.inherit({ | ||
cache: Type.OBJECT, | ||
@@ -23,0 +23,0 @@ config: Type.OBJECT |
@@ -7,3 +7,3 @@ "use strict"; | ||
core = di.load('core'), | ||
CacheInterface = di.load('interface/cache'), | ||
StorageInterface = di.load('interface/storage'), | ||
component = di.load('core/component'), | ||
@@ -51,3 +51,3 @@ cache = component.get('storage/memory'), | ||
if(!(this.config.storage instanceof CacheInterface)) { | ||
if(!(this.config.storage instanceof StorageInterface)) { | ||
throw new error.HttpError(500, this.config, 'Session storage must be instance of interface/storage'); | ||
@@ -54,0 +54,0 @@ } |
@@ -5,3 +5,3 @@ { | ||
"description": "Powerful lightweight mvc framework for nodejs", | ||
"version": "0.1.0-beta-57", | ||
"version": "0.1.0-beta-58", | ||
"dependencies" : { | ||
@@ -8,0 +8,0 @@ "mongoose": "3.8.x", |
147620