开源一个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地址

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

相关推荐
周周写不完的代码1 小时前
Redis-缓存过期淘汰策略
数据库·redis·缓存
临安_大大白1 小时前
高性能缓存方案 —— Caffeine
缓存
小威编程1 小时前
C# (.net6)实现Redis发布和订阅简单案例
数据库·redis·缓存
凤 曦4 小时前
Redis:redis++在C++中的常用接口
数据库·redis·缓存
fchampion5 小时前
LRU缓存
缓存·面试·职场和发展
bug菌¹13 小时前
滚雪球学Redis[1.1讲]:什么是Redis?
数据库·redis·缓存
菜♕卷16 小时前
Redis-02 持久化
数据库·redis·缓存
狼与自由20 小时前
redis 为什么速度快
数据库·redis·缓存
binbinxyz1 天前
Redis BigKey问题
数据库·redis·缓存