Implement MVCC optimistic locking in Ehcache