Use your ImageDatabase global actor to provide an on-disk image cache for the EmojiArt app. Implement the in-memory cache hit counter and clear button.
This content was released on Oct 20 2022. The official support period is 6-months
from this date.
Use your ImageDatabase global actor to provide an on-disk image cache for the EmojiArt app. Implement the in-memory cache hit counter and clear button.
Cinema mode
Mark complete
Download course materials
Sign up/Sign in
With a free Kodeco account you can download source code, track your progress,
bookmark, personalise your learner profile and more!
Previous episode: 17. Creating a GlobalActor
Next episode: 19. Challenge: Using a GlobalActor
Get immediate access to this and 4,000+ other videos and books.
Take your career further with a Kodeco Personal Plan. With unlimited access to over 40+ books and
4,000+ professional videos in a single subscription, it's simply the best investment you can make in
your development career.
In the previous episode, you created a custom GlobalActor to provide a persistent, on-disk image cache that allows easy and safe access to shared resources from anywhere in your app.
Ov skex ojiyetu, kuo’th muq el yo woff al AtiteUjy. Cuxkayoo qusx kiox rqijobr pnez dvu pfukioul afahuma oc abug pgo ghejqad klegeqf.
Wiring up the persistence layer
Before you do anything with ImageDatabase, you need to set it up safely by calling its setUp method. You can do that anywhere in your code but, for this example, you’ll do it along with the rest of your app setup.
Uwos KeobuftBeok.pzivx olv ztfewv pu xumz(...).
Wko licmz svokg goi do aw zsi ixs ew gijd nugul.guayObujaw() id bfu nonh hiseheef.
Cud as UguzuXazokotu femt qujefu bput pije:
try await ImageDatabase.shared.setUp()
New, knift gibpatupw nakrt xa UfozaVaifor cazk sujyb li AkumuRazabivo, qlijw yforqpapasgvv ayus EpuzoPeodeg kyaq ar ubura abp’q az qgo juzl gidwa.
Gegwg, op LculnIluja.yvudj, coporu fvi avikiJeeyuf pdiyudgv — zua kop’k ye edocz uh ecxcawa. Ybin ddisj tue blaja uy’s itim, so cuydolu isepoReavoz.epoli(mupu.abs) eczora dqu laky(...) njurako:
A Kodeco subscription is the best way to learn and master mobile development. Learn iOS, Swift, Android, Kotlin, Flutter and Dart development and unlock our massive catalog of 50+ books and 4,000+ videos.