memcached和Redis的一些比較
Redis與Memcached對比:

https://medium.com/@Alibaba_Cloud/redis-vs-memcached-in-memory-data-storage-systems-3395279b0941
Redis支持服務端數據操作,并且支持更多的數據結構并支持更豐富的數據操作;如果需要緩存支持更復雜的結構和操作,Redis更好;
Memcached對于簡單的鍵值存儲具有更高的內存利用率。但是,如果Redis采用哈希結構,則會比Memcached具有更高的利用率;
Redis僅適用單核,而Memcached使用多個內核,平均來看,Redis在小數據存儲方面擁有更高的性能,但存儲100k數據以上時Memcached要更優;
Redis支持字符串,哈希,列表,集合和有序集合
Redis中,并非所有數據都在內存中進行。
Redis支持數據持久性操作包括RDB快照和AOF日志。
Memcached本身不支持分布式模式。您只能通過分布式算法(如Consistent Hash)在客戶端上實現Memcached的分布式存儲。
與只能在客戶端實現分布式存儲的Memcached相比,Redis更喜歡在服務器端構建分布式存儲。
Django中配置memcached:
https://medium.com/@netfluff/memcached-for-django-ecedcb74a06d
系統設置
memcached.exe?-d?install??|?sudo?apt-get?install?memcached memcached.exe?-d?start????| ------------------------------------------------------- pip?install?python-memcached
Django設置
# settings.py
CACHES?=?{ ????'default':?{ ????????'BACKEND':?'django.core.cache.backends.memcached.MemcachedCache', ????????'LOCATION':?'127.0.0.1:11211', ????} }
from?django.core.cache?import?cache def?my_view(request): ????cache_key?=?'my_unique_key'?#?needs?to?be?unique ????cache_time?=?86400?#?time?in?seconds?for?cache?to?be?valid ????data?=?cache.get(cache_key)?#?returns?None?if?no?key-value?pair ????if?not?data: ????????my_service?=?Service() ????????data?=?service.get_data() ???? ????cache.set(cache_key,?data,?cache_time) return?JsonResponse(data,?safe=False)
Openresty中memcached使用:
https://github.com/openresty/lua-resty-memcached
使用OpenResty實現流控:
https://www.nosuchfield.com/2019/07/04/Flow-control-using-OpenResty/
win7 安裝Memcache:
https://blog.csdn.net/Alex_Best/article/details/5802294
Memcached和Memcache安裝:
https://blog.csdn.net/LANGZI7758521/article/details/86583646
Redis總結:
https://zhuanlan.zhihu.com/p/54513277
memcached命令參考:
https://www.runoob.com/memcached/
SpringBoot中使用Redis緩存:
https://blog.csdn.net/u014449560/article/details/82807880
在共享內存實現 Redis(上)
https://cloud.tencent.com/developer/article/1005881
MongoDB和redis的區別,mmap
https://blog.csdn.net/fanlei5458/article/details/81005798
https://www.jianshu.com/p/2b523fbee36f
https://stackoverflow.com/questions/5400163/when-to-redis-when-to-mongodb
mongodb,redis,mysql 簡要對比
https://www.cnblogs.com/lovychen/p/5613986.html
使用node存儲圖片到mongodb
https://medium.com/@alvenw/how-to-store-images-to-mongodb-with-node-js-fb3905c37e6d
MongoDB啟動配置:
https://www.jianshu.com/p/f179ce608391
openresty操作mongodb:
https://www.cnblogs.com/tm2015/p/7505438.html
OpenResty中使用Lua的MongoDB庫,使用連接池節省連接認證時間
https://renqiang.xyz/2016/12/24/OpenResty%E4%B8%AD%E4%BD%BF%E7%94%A8Lua%E7%9A%84MongoDB%E5%BA%93%EF%BC%8C%E4%BD%BF%E7%94%A8%E8%BF%9E%E6%8E%A5%E6%B1%A0%E8%8A%82%E7%9C%81%E8%BF%9E%E6%8E%A5%E8%AE%A4%E8%AF%81%E6%97%B6%E9%97%B4/
Mongodb基本語法
https://juejin.im/post/5c68cbfa6fb9a049e2328b4e
mongodb基本語法歸納
https://www.jianshu.com/p/d7dad6dfe3c6
mongo數據庫的各種查詢語句示例
https://blog.csdn.net/qq_27093465/article/details/51700435
MongoDB mapreduce介紹
https://medium.com/@mallikarjuna91/mongodb-mapreduce-introduction-649f8533f509
MongoDB mapreduce速度提升
https://www.oschina.net/translate/how-to-speed-up-mongodb-map-reduce-by-20x
MongoDB中MapReduce介紹與使用
https://www.cnblogs.com/chenpingzhao/p/7913247.html
Mongodb高級篇-MapReduce
https://www.jianshu.com/p/5a24629e1126
軟件開發
版權聲明:本文內容由網絡用戶投稿,版權歸原作者所有,本站不擁有其著作權,亦不承擔相應法律責任。如果您發現本站中有涉嫌抄襲或描述失實的內容,請聯系我們jiasou666@gmail.com 處理,核實后本網站將在24小時內刪除侵權內容。
版權聲明:本文內容由網絡用戶投稿,版權歸原作者所有,本站不擁有其著作權,亦不承擔相應法律責任。如果您發現本站中有涉嫌抄襲或描述失實的內容,請聯系我們jiasou666@gmail.com 處理,核實后本網站將在24小時內刪除侵權內容。