Lukeluha
Lukeluha

Reputation: 263

Storing big array (1 GB) in memcache

I am beginner with memcached and my question is simple. Is there any option how to store 1 GB array into memcached?

Thanks for answers.

Upvotes: 0

Views: 1301

Answers (1)

Guns
Guns

Reputation: 2728

This is not recommended to store in Cache

  • Break the array into pieces
  • Use a file storage, maybe write a json file or something to access
  • Use a database connection to store the data (recommended)

1GB of array is not recommended to store into Caching system. Only store those information which are used too frequent into your frontend and not like an entire database.

Upvotes: 3

Related Questions