Skip to content

Releases: hanke0/python-ctools

0.2.0

10 Aug 16:12
Compare
Choose a tag to compare

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.

0.2.0.dev0

10 Aug 16:03
Compare
Choose a tag to compare
0.2.0.dev0 Pre-release
Pre-release

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.

0.1.0

08 Jul 18:17
Compare
Choose a tag to compare

New Features

  • New class ctools.CacheMap, it's a lfu cache behaving mutch like dict.
  • New class TTLCache, a cache mapping storing items for a certain time.
  • strhash now add a method argument which supported fnv1a(default), fnv1, djb2 and murmur algorithms.

0.0.4

21 Apr 12:48
Compare
Choose a tag to compare
  • Improve strhash.
    Now we have less collisions, but note that we will get different hash value in this version compare with old version.