S
S
StynuBlizz2017-08-25 15:32:28
Android
StynuBlizz, 2017-08-25 15:32:28

How to cache files in android?

It is necessary to cache files (video) in the android application, and so that there would be a certain amount for storing the cache, i.e. if the allowed size for storing the cache, when saving a new file, overflowed, then the old files were deleted from the cache to save this new one. In general, how to do file hashing? Maybe there are some libraries.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Denis Zagaevsky, 2017-08-25
@zagayevskiy

In general, this is not such an easy task. There are many caching algorithms .
You can look towards LRU from Jake Worton

I
i_visseri, 2017-08-25
@i_visseri

Hashing or caching? For caching, simply store data in an application-level map or write to the database.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question