MCPcopy
hub / github.com/flyteorg/flyte / GetOrCreate

Method GetOrCreate

flytestdlib/utils/auto_refresh_cache.go:27–27  ·  view source on GitHub ↗

Get object if exists else create it

(item CacheItem)

Source from the content-addressed store, hash-verified

25
26 // Get object if exists else create it
27 GetOrCreate(item CacheItem) (CacheItem, error)
28}
29
30// Deprecated: This utility is deprecated, it has been refactored and moved into `cache` package.

Callers 5

Test_monitorFunction · 0.95
TestCacheTwoFunction · 0.95

Implementers 15

InMemoryAutoRefreshflytestdlib/cache/in_memory_auto_refre
AutoRefreshflytestdlib/cache/mocks/mocks.go
AutoRefresh_Expecterflytestdlib/cache/mocks/mocks.go
autoRefreshCacheflytestdlib/utils/auto_refresh_cache.g
autoRefreshflytestdlib/autorefreshcache/auto_refr
AutoRefreshflytestdlib/autorefreshcache/mocks/moc
AutoRefresh_Expecterflytestdlib/autorefreshcache/mocks/moc
AutoRefreshWithUpdateflytestdlib/autorefreshcache/mocks/moc
AutoRefreshWithUpdate_Expecterflytestdlib/autorefreshcache/mocks/moc
AutoRefreshflytestdlib/flytestdlib/cache/mocks/mo
AutoRefresh_Expecterflytestdlib/flytestdlib/cache/mocks/mo
AutoRefreshflytestdlib/flytestdlib/autorefreshcac

Calls

no outgoing calls

Tested by 5

Test_monitorFunction · 0.76
TestCacheTwoFunction · 0.76