zoukankan      html  css  js  c++  java
  • django redis VS memcache 区别简介

    https://www.v2ex.com/t/142644

    http://stackoverflow.com/questions/10558465/memcached-vs-redis

    简单来说:

    redis :支持的数据类型多,读写速度快,支持的单个文件大小要大,可以数据永久化

    redis支持: 

    • Binary-safe strings.
    • Lists: collections of string elements sorted according to the order of insertion. They are basically linked lists.
    • Sets: collections of unique, unsorted string elements.
    • Sorted sets, similar to Sets but where every string element is associated to a floating number value, called score. The elements are always taken sorted by their score, so unlike Sets it is possible to retrieve a range of elements (for example you may ask: give me the top 10, or the bottom 10).
    • Hashes, which are maps composed of fields associated with values. Both the field and the value are strings. This is very similar to Ruby or Python hashes.
    • Bit arrays (or simply bitmaps): it is possible, using special commands, to handle String values like an array of bits: you can set and clear individual bits, count all the bits set to 1, find the first set or unset bit, and so forth.
    • HyperLogLogs: this is a probabilistic data structure which is used in order to estimate the cardinality of a set. Don't be scared, it is simpler than it seems... See later in the HyperLogLog section of this tutorial.
  • 相关阅读:
    第十八周个人作业
    十六周个人作业
    个人作业
    第十四周总结
    第十三周周末总结
    排球计分程序说明书
    我和计算机
    排球比赛记分员
    逻辑思维怎样成为一个高手
    用户故事排球教练助手
  • 原文地址:https://www.cnblogs.com/wswang/p/5446216.html
Copyright © 2011-2022 走看看