Home > Backend Development > PHP Tutorial > memcache 缓存内容存储的位置

memcache 缓存内容存储的位置

WBOY
Release: 2016-06-23 13:49:26
Original
1441 people have browsed it

memcache是以key-values的形式缓存的数据,他存在磁盘上的什么位置呢,不是存在磁盘是存在什么地方?

一下是遍历memcache的结果
13-10.2.6.162=>1
key=>
32718c3704503786992a15e1bc54a770=>1
49984228d14f4633d570e844774d000d=>7
714a484de67338deb5f10677f483bfde=>6
97de99af15045e8ce4a05ac8217db5c9=>1
58197692100dce1f70a09ca65cecc728=>6
53216b09afd8524cc675ba291886e94b=>7
692ee635eb15defe2e44620b853bba45=>2
688d4f17fc3a51003cb599116523427f=>2
87a655f036e38b2f625ae72d7a9a8c4a=>5
fc073d4398a0781b3e8afea53769d00f=>Array
(
)

1242822591b53643d1c0c59114b5d104=>Array
(
)

99619faefb03d6008e29fe9f394651d5=>Array
(
    [ff878cfd3b276e949696e9ffd922cd75] => Array
        (
            [rowid] => ff878cfd3b276e949696e9ffd922cd75
            [id] => 170356803416a75f4cea9109507cacd8e2f2aefc
            [sku] => 17035680
            [qty] => 1
            [size] => 41
            [promotion_tag] => 
            [ori_price] => 349
            [price] => 349
            [marketprice] => 649.00


回复讨论(解决方案)

内存中 11111

是存在内存里的



一直存在内存中吗?我是把购物车信息存在memcache中的,如果数量很大。
是存在内存里的

内存中 11111



11111?内存地址

你应该存储到数据库里

京东,淘宝,都是存储到数据库的,
用户没登录才存储到临时表
===============================
即使存储到memcache中,一般只存储关键字段,如用户ID,产品ID,数量

内存里的,在内存里

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template