Get access to over 100 FireMonkey cross platform samples for Android, IOS, OSX, Windows, and Linux!


File Cache Component For Delphi XE5 Firemonkey On Android And IOS

| Delphi 11 10 XE8 XE7 XE Seattle Berlin Tokyo Rio Firemonkey Delphi Android Delphi IOS

Delphi XE5 Firemonkey Disk File Cache | Delphi 11 10 XE8 XE7 XE Seattle Berlin Tokyo Rio Firemonkey Delphi Android Delphi IOSdkstar88 over at Pocket Hero has a blog post up about a component he created called TDiskCache. It was built for an older version of Delphi Firemonkey but I added the required units and it compiles in Delphi XE5 Firemonkey now. It should work without any problems on Android and IOS (I did a test compile to Android and Windows). Basically TDiskCache will allow you to save out a String, TBitmap, TStream, and TStrings to a cache file which has a time to live set on it. The files are created with MD5 hash names and then there is an ini file that is used as the directory of the cache which holds the time to live information and other data. You could use this component if you were building some kind of HTTP browser where you need to cache a lot of files and download new ones when the time to live runs out. As a bonus there is also a unit that it uses called hashutil that gives you easy access to MD5 functions for strings, streams, and files. I have included my modified Delphi XE5 Firemonkey version below as well.

Head over and check out the blog entry about the disk cache component and download the original.

Download: Updated Delphi XE5 Firemonkey version of TDiskCache

Have Delphi Firemonkey questions? Ask and get answers on StackOverflow.

Related posts

AutoBlogAI: FireMonkey Client To Leverage LLMs And Generative AI For Blogging


Unleashing Creativity With Song Writer AI: A Deep Dive


How To Build Stable Diffusion Text To Image Prompts


FireMonkey 10.4.2 Features Updated iOS 14, Android 11, And macOS 11 Support Plus Hundreds Of Fixes

Sign up for our Newsletter and
stay informed

Leave a Reply