Documentation ¶ Index ¶ func RunCached(c sdk.Context, f func(sdk.Context) error) (err error) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func RunCached ¶ func RunCached( c sdk.Context, f func(sdk.Context) error, ) ( err error, ) RunCached wraps a function with a cache context and writes the cache to the context if the function call succeeds. If the function call fails, the cache is discarded. Types ¶ This section is empty. Source Files ¶ View all Source files util.go Click to show internal directories. Click to hide internal directories.