proxies.py

Go to the documentation of this file.
00001 from vyperlogix.classes.CooperativeClass import Cooperative
00002 from vyperlogix.hash import lists
00003 
00004 class HashedListsProxy(Cooperative):
00005     def __init__(self):
00006         self.d_cache = lists.HashedLists()
00007     
00008     def get_item(self,key):
00009         return self.d_cache[key]
00010     
00011     def set_item(self,key,value):
00012         self.d_cache[key] = value
00013 
00014     def get_size(self):
00015         return len(self.d_cache)
00016 
00017     def get_keys(self):
00018         return self.d_cache.keys()
00019 
00020 

© Copyright 2008-2009 Vyper Logix Corp., All Right Reserved; If you reference this document or any part of this document you must use the citation verbatim (including the link) "© Copyright 2008-2009 Vyper Logix Corp., All Right Reserved."

Notice: This source code contained in this document is NOT open source and is NOT being distributed as open source.

122,241 lines of code and growing...