Added some transaction support, see also https://github.com/orslumen/record-cache/pull/31