hacks.py: Added get() method to DictCache

The get() method has the same semantics as BaseCache.get().