ethereum-org-website icon indicating copy to clipboard operation
ethereum-org-website copied to clipboard

Tutorial: All you can cache

Open qbzzt opened this issue 3 years ago • 0 comments

Tutorial title

All you can cache

Tutorial description

When using rollups the cost of a byte in the transaction is a lot more expensive than the cost of a storage slot. Therefore, it makes sense to cache as much information as possible on chain.

In this article the developer learns how to create and use a caching contract in such a way that any parameter value that is likely to be used multiple times will be cached and available for use (after the first time) with a much smaller number of bytes, and how to write off chain code that uses this cache.

Tag your tutorial

layer-2, caching, storage

Publication

None, yet

Skill level

Intermediate

Hosted on Ethereum.org or hosted elsewhere?

Ethereum.org

For tutorials to be hosted on Ethereum.org: Tutorial Content

Not written yet.

qbzzt avatar Aug 02 '22 18:08 qbzzt