Browse Source

Try to getFromCache in getWithKeys

Pascal Peridont 19 years ago
parent
commit
332004c8c2
1 changed files with 3 additions and 0 deletions
  1. 3 0
      std/neko/db/Manager.hx

+ 3 - 0
std/neko/db/Manager.hx

@@ -95,6 +95,9 @@ class Manager<T : Object> {
 	}
 
 	public function getWithKeys( keys : {} ) : T {
+		var x = getFromCache(untyped keys,false);
+		if( x != null )
+			return x;
 		var s = new StringBuf();
 		s.add("SELECT * FROM ");
 		s.add(table_name);