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

AndroidAppmethodComponentDelphiFiremonkeyIOSOSXWindows

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
AndroidC++BuilderCode SnippetDelphiDemoFiremonkeyIOSOSXShowcaseWindows

Powerful Cross Platform Email App Sample In Delphi 10.4.1 FireMonkey For Android And IOS

AndroidC++BuilderDelphiFiremonkeyIOSOSXWindows

Significant Update Available For Delphi FireMonkey 10.4.1 On Android, IOS, OSX, Windows, And Linux

C++BuilderDelphiIDEWindows

Professional SVG Icon Image List For Delphi 10.4 FireMonkey On Windows

AndroidC++BuilderDelphiFiremonkeyIOSLiveBindingsOSXWindows

Top Tips And Tricks To Speed Up Development With Delphi 10.4 FireMonkey On Android and IOS

Sign up for our Newsletter and
stay informed

Leave a Reply