MCPcopy
hub / github.com/gogf/gf / Data

Method Data

os/gcache/gcache_adapter.go:104–104  ·  view source on GitHub ↗

Data returns a copy of all key-value pairs in the cache as map type. Note that this function may lead lots of memory usage, you can implement this function if necessary.

(ctx context.Context)

Source from the content-addressed store, hash-verified

102 // Note that this function may lead lots of memory usage, you can implement this function
103 // if necessary.
104 Data(ctx context.Context) (data map[any]any, err error)
105
106 // Keys returns all keys in the cache as slice.
107 Keys(ctx context.Context) (keys []any, err error)

Callers 15

NewWithConfigFunction · 0.65
Test_AdapterRedis_Basic1Function · 0.65
Test_DB_TableFieldFunction · 0.65
Test_TypesFunction · 0.65
Test_Model_InsertFunction · 0.65
Test_Model_Insert_TimeFunction · 0.65
Test_Model_InsertIgnoreFunction · 0.65
Test_Model_BatchFunction · 0.65

Calls

no outgoing calls

Tested by 15

Test_AdapterRedis_Basic1Function · 0.52
Test_DB_TableFieldFunction · 0.52
Test_TypesFunction · 0.52
Test_Model_InsertFunction · 0.52
Test_Model_Insert_TimeFunction · 0.52
Test_Model_InsertIgnoreFunction · 0.52
Test_Model_BatchFunction · 0.52
Test_Model_ReplaceFunction · 0.52