Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8052655
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T07:36:04+00:00 2026-06-05T07:36:04+00:00

I need to store some cache of objects with data. How can I to

  • 0

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.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T07:36:05+00:00Added an answer on June 5, 2026 at 7:36 am

    You should not do this, quite apart from the considerable effort in space (code) and time (CPU) it would take. Systems where space is at a premium (mobile?) also have only limited CPU power (and it costs ENERGY to compress stuff!), so if you need it you should not do it anyway.

    Client-side code (today) should keep the bulk of data – if it is a lot – on the server, and only ask for small chunks on demand. The browser’s JS engine may or may not do its own compression, that really is not your business as JS programmer. Same as memory management, which is deliberately kept away from the hands of the JS programmer.

    So the answer is: redesign your app to follow the current programming paradigm for JS client/server programming and interaction.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I need to store some data client side and this data is too large
I need to utilize the Cache object in ASP.NET to store some data with
Let's assume I need to store some data of unknown amount within a database
I want to store some data during my site viewing. Sometime i need to
I have a written a client side HTTP cache and I need to store
I need to store some data that follows the simple pattern of mapping an
I need cache for my web application, it stores some small/medium size objects to
I need to store locally on android devices some images I get from the
I'm developing a Class Library / API and I need to store some global
I have this function, I need to store some values in an array, I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.