Skip to content

搞英语 → 看世界

翻译英文优质信息和名人推特

Menu
  • 首页
  • 作者列表
  • 独立博客
  • 专业媒体
  • 名人推特
  • 邮件列表
  • 关于本站
Menu

tidwall/pogocache

Posted on 2025-07-22

tidwall/pogocache

这是 Josh Baker 的新项目,他是优秀的tg C 地理空间库(之前介绍过)和其他各种有趣项目的作者:

Pogocache 是一款从头开始构建的快速缓存软件,专注于低延迟和 CPU 效率。

更快:Pogocache 比 Memcache、Valkey、Redis、Dragonfly 和 Garnet 更快。它拥有最低的单请求延迟,提供最快的响应时间。它经过优化,可从单核扩展到多核,从而为您提供最佳的单线程和多线程性能。

比 Memcache 和 Redis 更快,这可是一大卖点!README 文件包含一个设计细节部分,详细解释了系统如何实现如此高的性能,它采用了受 Josh 的shardmap项目启发的分片哈希图,并巧妙地运用了线程。

除了性能之外,Pogocache 最有趣的地方在于它提供的服务器接口:它模拟了 Redis 和 Memcached 的 API,提供了一个简单的 HTTP API ,并允许您通过 PostgreSQL 线路协议与其通信!

 psql -h localhost -p 9401 => SET first Tom; => SET last Anderson; => SET age 37; $ curl http://localhost:9401/last Anderson通过psql -h localhost -p 9401 => SET first Tom; => SET last Anderson; => SET age 37; $ curl http://localhost:9401/last Anderson

显示 HN

标签: c 、缓存、 http 、 memcached 、 postgresql 、 redis

原文: https://simonwillison.net/2025/Jul/21/pogocache/#atom-everything

本站文章系自动翻译,站长会周期检查,如果有不当内容,请点此留言,非常感谢。
  • Abhinav
  • Abigail Pain
  • Adam Fortuna
  • Alberto Gallego
  • Alex Wlchan
  • Answer.AI
  • Arne Bahlo
  • Ben Carlson
  • Ben Kuhn
  • Bert Hubert
  • Bits about Money
  • Brian Krebs
  • ByteByteGo
  • Chip Huyen
  • Chips and Cheese
  • Christopher Butler
  • Colin Percival
  • Cool Infographics
  • Dan Sinker
  • David Walsh
  • Dmitry Dolzhenko
  • Dustin Curtis
  • eighty twenty
  • Elad Gil
  • Ellie Huxtable
  • Ethan Dalool
  • Ethan Marcotte
  • Exponential View
  • FAIL Blog
  • Founder Weekly
  • Geoffrey Huntley
  • Geoffrey Litt
  • Greg Mankiw
  • Henrique Dias
  • Hypercritical
  • IEEE Spectrum
  • Investment Talk
  • Jaz
  • Jeff Geerling
  • Jonas Hietala
  • Josh Comeau
  • Lenny Rachitsky
  • Li Haoyi
  • Liz Danzico
  • Lou Plummer
  • Luke Wroblewski
  • Matt Baer
  • Matt Stoller
  • Matthias Endler
  • Mert Bulan
  • Mind Matters
  • Mostly metrics
  • Naval Ravikant
  • News Letter
  • NextDraft
  • Non_Interactive
  • Not Boring
  • One Useful Thing
  • Phil Eaton
  • Product Market Fit
  • Readwise
  • ReedyBear
  • Robert Heaton
  • Rohit Patel
  • Ruben Schade
  • Sage Economics
  • Sam Altman
  • Sam Rose
  • selfh.st
  • Shtetl-Optimized
  • Simon schreibt
  • Slashdot
  • Small Good Things
  • Steve Blank
  • Taylor Troesh
  • Telegram Blog
  • The Macro Compass
  • The Pomp Letter
  • thesephist
  • Thinking Deep & Wide
  • Tim Kellogg
  • Understanding AI
  • Wes Kao
  • 英文媒体
  • 英文推特
  • 英文独立博客
©2025 搞英语 → 看世界 | Design: Newspaperly WordPress Theme