alternative to memcached that can persist to disk

前端 未结 15 2123
猫巷女王i
猫巷女王i 2020-12-02 07:52

I am currently using memcached with my java app, and overall it\'s working great.

The features of memcached that are most important to me are:

  • it\'s fast,
15条回答
  •  借酒劲吻你
    2020-12-02 08:01

    Try go-memcached - memcache server written in Go. It persists cached data to disk out of the box. Go-memcached is compatible with memcache clients. It has the following features missing in the original memcached:

    • Cached data survive server crashes and/or restarts.
    • Cache size may exceed available RAM size by multiple orders of magnitude.
    • There is no 250 byte limit on key size.
    • There is no 1Mb limit on value size. Value size is actually limited by 2Gb.
    • It is faster than the original memcached. It also uses less CPU when serving incoming requests.

    Here are performance numbers obtained via go-memcached-bench:

    -----------------------------------------------------
    |            |  go-memcached   | original memcached |
    |            |      v1         |      v1.4.13       |
    | workerMode ----------------------------------------
    |            | Kqps | cpu time |  Kqps  | cpu time  |
    |----------------------------------------------------
    | GetMiss    | 648  |    17    |  468   |   33      |
    | GetHit     | 195  |    16    |  180   |   17      |
    | Set        | 204  |    14    |  182   |   25      |
    | GetSetRand | 164  |    16    |  157   |   20      |
    -----------------------------------------------------
    

    Statically linked binaries for go-memcached and go-memcached-bench are available at downloads page.

提交回复
热议问题