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 XE5 Firemonkey Disk File Cachedkstar88 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

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


Ryzen 9 5950x: One Billion Lines Of Delphi Code Compiled In ~5 Minutes On 16 Cores


DelphiCon 2020 FireMonkey Sessions Available Starting November 19


Powerful Commercial Gorilla3D Framework Upgraded For Delphi FireMonkey On Windows And Android

Sign up for our Newsletter and
stay informed

Leave a Reply