witten
/
luminotes
Archived
1
0
Fork 0
This repository has been archived on 2023-12-16. You can view files and clone it, but cannot push or open issues or pull requests.
luminotes/controller/test/Stub_cache.py

14 lines
297 B
Python

class Stub_cache( object ):
def __init__( self ):
self.__objects = {}
def get( self, key ):
return self.__objects.get( key )
def set( self, key, value ):
self.__objects[ key ] = value
def delete( self, key ):
if key in self.__objects:
del( self.__objects[ key ] )