@@ -0,0 +1,632 @@
+import cPickle as pickle%0Aimport os%0A%0Aclass GeniaCache:%0A    def __init__(self):%0A        try:%0A            prefix = os.path.dirname(__file__)%0A            self.filename = os.path.join( prefix, 'genia_cache' )%0A            self.cache = pickle.load( open( self.filename , %22rb%22 ) ) ;%0A        except IOError:%0A            self.cache = %7B%7D%0A%0A    def has_key(self, key):%0A        return self.cache.has_key( str(key) )%0A%0A    def add_map(self, key, value):%0A        self.cache%5B str(key) %5D = value%0A%0A    def get_map(self, key):%0A        return self.cache%5B str(key) %5D%0A%0A    def __del__(self):%0A        pickle.dump( self.cache, open( self.filename, %22wb%22 ) )%0A%0A

add genia cache