开源一个C缓存库

简介

在当下的视频点播应用场景下,端侧对视频缓存的需求可谓刚需,一方面可以为公司节省流量成本,一方面可以提升用户的播放体验,有一石二鸟之效。

近期,本人用C写了一个缓存库,支持iOS/Android/harmony系统,并在以上3个平台自测过,MIT license,开箱即用。

特性

  1. Cross-Platform Support: Supports video caching on Android, iOS, and HarmonyOS.
  2. Video Format Support: Supports caching of MP4 and HLS video formats.
  3. HTTP Caching Proxy : A high-performance HTTP caching proxy built with libevent.
  4. HTTP 302 Redirection Support: Handles HTTP 302 redirects to ensure proper video resource access.
  5. Domain IP Pool Support: Configurable IP pools for domains, offering flexible resource access.
  6. Cache Management: Supports customizable cache eviction mechanisms.
  7. LRU Eviction Strategy: Implements an LRU (Least Recently Used) cache eviction strategy to ensure cache efficiency.

github地址

C缓存库Github地址

欢迎使用,欢迎就使用问题交流。

相关推荐
周厉13 小时前
只清除指定网站缓存而不影响其他网站:原理与实操
缓存·浏览器·清除缓存
lambo mercy1 天前
08_redis__集群 (Cluster)
数据库·redis·缓存
Doctor_Strange_DML1 天前
图像编辑模型服务部署过程记录
linux·缓存·docker·ai
always20222 天前
AI运行时 · 附录4 - KVCache 卸载与推理运行时:PagedAttention / PD 分离 / 分层缓存的显存经济学
人工智能·缓存
好用斋2 天前
网盘聚合LitePan:网盘挂载、缓存加速、STRM生成与Emby 302一条龙
缓存
YYYing.2 天前
【Redis剑指offer系列 (三) 】Redis事务与日志
数据库·redis·缓存·日志·八股
YYYing.3 天前
【Redis剑指offer系列 (二) 】Redis线程模型
数据库·redis·缓存·八股
YYYing.4 天前
【Redis剑指offer系列 (一) 】Redis数据结构
数据库·redis·缓存·八股
船神丿男人5 天前
Redis 缓存击穿与雪崩实测:同键合并、TTL 错峰与迟到回填
数据库·redis·缓存
جيون داد ناالام ميづ5 天前
六、MyBatis 高级用法:动态 SQL 进阶 + 缓存优化 + TypeHandler
sql·缓存·mybatis