缓存问题 [英] Cache issue

查看:104
本文介绍了缓存问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好朋友.

我有一个问题.

1.是否可以从一台计算机(一台PC)将具有过期策略的某些数据添加到缓存对象中,然后将其显示到位于同一网络中的另一台计算机上?

据我所知,这是不可能的.但是我的客户已经遇到了这个问题.当用户单击添加到购物车"按钮时,我正在将产品数据添加到缓存对象中.我的客户在另一台机器上检查了此问题,他正面临这个问题.

谁能告诉我为什么会这样?应该是什么问题?

问候
Imrankhan

hello friends.

I have one question.

1. Is it possible if I add some data in cache object with expiration policy from one machine(one PC) that will display to another machine that is placed in same network?

As per my knowledge, this is not possible. But my client have faced this problem. I am adding product data in cache object when user click add to cart button. My client has checked this in different machine and he is facing this problem.

can anyone tell me why this happens? what should be an issue?

regard
Imrankhan

推荐答案

如果将其添加到Cache,则使用同一应用程序的每个人都可以看到它.如果要将其限制为用户,则应查看Session 对象.
If you are adding this into the Cache, then it will be visible to everybody using the same application. If you want to limit it to a user, then you should be looking at the Session object.


这篇关于缓存问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆