MCPcopy Create free account
hub / github.com/sqlalchemy/sqlalchemy / get_value

Method get_value

test/ext/test_baked.py:1014–1019  ·  view source on GitHub ↗
(cache_key, cache, createfunc)

Source from the content-addressed store, hash-verified

1012 return self.execution_options(**{"_cache_key_%s" % path: key})
1013
1014 def get_value(cache_key, cache, createfunc):
1015 if cache_key in cache:
1016 return cache[cache_key]()
1017 else:
1018 cache[cache_key] = retval = createfunc().freeze()
1019 return retval()
1020
1021 s1 = fixture_session(query_cls=CachingQuery)
1022

Callers

nothing calls this directly

Calls 1

freezeMethod · 0.45

Tested by

no test coverage detected