.. currentmodule:: ctools
New Feature
- New class :class:`SortedMap`. A sorted map base on red-black tree.
Changes
- :class:`CacheMap` and :class:`TTLCache` now support all of MutableMapping methods.
- :meth:`CacheMap.setnx` and :meth:`TTLCache.setnx` must accept key as their only one argument.
- :class:`CacheMap` default size is setting to
MAX_INT32
. - :class:`Channel` default size is setting to
MAX_INT32
. - :class:`TTLCache` default ttl is setting to 1 minute.
New Feature
- New class :class:`CacheMap`, it's a lfu cache behaving much like dict.
- New class :class:`TTLCache`, a cache mapping storing items for a certain time.
- :func:`strhash` now add a method argument which supported fnv1a(default), fnv1, djb2 and murmur algorithms.
Improve
- Decrease :func:`strhash` collisions, but note that we will get different hash value in this version compare with old version.
- First release.