What is the best way to cache data using sqlite file or database?

I am caching data in the application that I am writing now and was wondering if it would be better to use a plain text file or sqlite database to store cached data? Thanks.

EDIT: I use Zend_Cache, so relationships are processed without the need for a database. I caching - these are xml strings if they are saved as regular files up to 60 KB in size.

+3
source share
3 answers

Depends on the type of data you plan to store.

If the data is related and you want to get data based on this relationship ... then use SQLite.

, ... . SQLite.

- , /... - memcached, IO.

+6

CACHE- ( ) , memcached?

0

60k , , , , .

, . text/xml sqlite .

0

Source: https://habr.com/ru/post/1718385/


All Articles