Home > Net >  In addition to the global variables, the backend like localStorage cache to use?
In addition to the global variables, the backend like localStorage cache to use?

Time:09-27

Bs project I need to save a parameter in the back end, can take to anywhere, use the static or global variables, more easy to string of data when the user login, do you have any similar to the front-end localStorage to use caching that like this? The method of data is the client's background,

CodePudding user response:

The session, the cache

CodePudding user response:

Browser localStorage and no direct support for multiple users - multi-user operating on the same browser, may also string data,

CodePudding user response:

MemoryCache

CodePudding user response:

The Session you casually, Cache, cookies, MemoryCache, Redis, MSQSQL, mysql, tall block chain
The future based on shape colony on Mars, based on the Atlantic ocean dolphin brain

Save a data - what the hell are you about what, as long as he is able to save the data, you can quickly access to can accurately,
As to what string of data, do not exist, you press the token preservation, according to the user id preservation, according to the sessionid preservation, key in you, not the so-called front-end, and the back-end,

Such as front-end save, you also want to points and key points in the domain, path, don't you want to, I don't care what the key, the key, is bill's things, not I
  •  Tags:  
  • C#
  • Related