I need to store some cache of objects with data. How can I to compress them when put to cache and uncompress when read from it?
I need to cache some pages of store in my client-side logic for my purposes. I think I can have a lot of data, so when records count will be much than 500, I'll clear older values. My cache is just an JavaScript Object, so I need to store all data (which is array of objects) in memory.
As Oleg Volkov said (привет!), I describe my task:
1) there is some ExtJS 4.1 store and combo with multiSelect and pagination
2) I wrote some functional (client and server sides both) which can a) to get page when value I want to set is placed) b) can to setValues values in way they will be stored in foundedValues object to save their values (to set within setRawValue) and can to highlight them when i moving across pages.
3) My pageSize is 25. So, if I want to do setValues([1, 34, 10]), store will get value from firstPage, then load second, get value (34), and will go to first to get 10! But I want to store that all values from 1 to 25 are belongs to first page, and get it from cache, not within Ajax requests.