pmylund/go-cache — Issue #1: Decoding of gob data may fail when decoding []*T before []T
Author: pmylund
Created: 2012-02-14 18:03:26+00:00
State: open

More details in Go issue #2995: http://code.google.com/p/go/issues/detail?id=2995

If the cache includes a []*T where T.T = []*T, and the cache does not include a []T which is serialized first--which is impossible to predict since the underlying data structure for the cache is a map--loading cache data will fail.

The only impact of this is that, in certain cases, you will be unable to load cache data using Load or LoadFile. All other cache functionality is unaffected, and you can store []*T in a cache just fine.