write through ActiveSupport cache implementation