Fixed #68: Implement SheerkaQL
Fixed #70: SheerkaFilterManager : Pipe functions Fixed #71: SheerkaFilterManager : filter_objects Fixed #75: SheerkaMemory: Enhance memory() to use the filtering capabilities Fixed #76: SheerkaEvaluateConcept: Concepts that modify the state of the system must not be evaluated during question
This commit is contained in:
Vendored
+3
@@ -12,6 +12,9 @@ class FastCache:
|
||||
self.lru = []
|
||||
self.default = default
|
||||
|
||||
def __contains__(self, item):
|
||||
return self.has(item)
|
||||
|
||||
def put(self, key, value):
|
||||
if len(self.cache) == self.max_size:
|
||||
del self.cache[self.lru.pop(0)]
|
||||
|
||||
Reference in New Issue
Block a user