V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
• 请不要在回答技术问题时复制粘贴 AI 生成的内容
RicardoY
V2EX  ›  程序员

有什么支持过期的 Java 本地内存 KV 存储吗?

  •  
  •   RicardoY · Aug 5, 2022 · 4061 views
    This topic created in 1364 days ago, the information mentioned may be changed or developed.

    试过 MapDB 了,MapDB 会用 Java 自带的序列化和反序列化,性能稀烂。对存储量要求不高,小于 2GB 。

    21 replies    2022-08-06 22:41:02 +08:00
    Ayanokouji
        1
    Ayanokouji  
       Aug 5, 2022   ❤️ 1
    rocksdb?
    passer9527
        2
    passer9527  
       Aug 5, 2022 via iPhone   ❤️ 1
    guava cache
    Jooooooooo
        3
    Jooooooooo  
       Aug 5, 2022   ❤️ 3
    试试 caffeine
    EminemW
        4
    EminemW  
       Aug 5, 2022
    caffeine +1
    yitulin
        5
    yitulin  
       Aug 5, 2022
    guava cache +1
    luozic
        6
    luozic  
       Aug 6, 2022
    apache collection
    a1274598858
        7
    a1274598858  
       Aug 6, 2022
    @yitulin v2 都被小黑子给占领了。。。
    dqzcwxb
        8
    dqzcwxb  
       Aug 6, 2022
    caffeine
    jetcache
    LeegoYih
        9
    LeegoYih  
       Aug 6, 2022
    可以试试 H2 ,是用 Java 实现的,虽然是关系型数据库。
    hearfish
        10
    hearfish  
       Aug 6, 2022   ❤️ 1
    MapDB 除了 SerializerJava ,不是还提供了别的 Serializer 么
    https://mapdb.org/javadoc/latest/mapdb/org/mapdb/Serializer.html
    Cbdy
        11
    Cbdy  
       Aug 6, 2022 via Android
    咖啡因
    bthulu
        12
    bthulu  
       Aug 6, 2022
    不需要持久化, 那就 guava cache 或者 caffeine, 需要持久化, redis
    cnzjl
        13
    cnzjl  
       Aug 6, 2022
    guava cache ,本地过期缓存一直用的这个
    tairan2006
        14
    tairan2006  
       Aug 6, 2022
    caffeine
    liuhuan475
        15
    liuhuan475  
       Aug 6, 2022   ❤️ 1
    shalk
        16
    shalk  
       Aug 6, 2022
    本地内存 guava cache / caffeine
    本地磁盘 ehcache
    分布式 redis
    iosyyy
        17
    iosyyy  
       Aug 6, 2022   ❤️ 1
    caffeine
    gaoyulong
        18
    gaoyulong  
       Aug 6, 2022
    ohc ,性能贼好。
    kwh
        19
    kwh  
       Aug 6, 2022
    干,我觉得 hashmap 也不错啊。
    hdfg159
        20
    hdfg159  
       Aug 6, 2022
    caffeine
    RicardoY
        21
    RicardoY  
    OP
       Aug 6, 2022
    @kwh 需要自己实现过期(
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2493 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 63ms · UTC 03:59 · PVG 11:59 · LAX 20:59 · JFK 23:59
    ♥ Do have faith in what you're doing.