package
0.0.0-20240727155845-4765be0bf913
Repository: https://github.com/pproj/sheetsorm.git
Documentation: pkg.go.dev

# Structs

MockRowCache is a mock implementation of the RowCache interface.
MockRowUIDCache is a mock implementation of the RowUIDCache interface.
NullCache is a simple "implementation" of cache that is used when no cache is set by the user of the library it implements both the Row and UID caches.

# Interfaces

RowCache caches entire rows of data identified by their RowNum While it's generally okay to return stale data in RowUIDCache, returning stale data here have more serious implications As if sheetsorm have a cache hit in both the RowCache and the RowUIDCache, it will not fetch any data from the sheet, and it is possible to drift away a lot from the actual sheet this way.
RowUIDCache caches the row numbers for certain UIDs Implementations must be thread safe If the cache runs into any error, sheetsorm does not really care about that, so the cache can not report an error, it has to figure it out for itself UIDs are always strings, they are what typemagic spits out for that row It's generally okay to return stale data, because sheetsorm will check if the returned data has the correct UID, if not then it will invalidate the data.