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

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

相关推荐
尽兴-7 小时前
Elasticsearch 性能调优指南:写入、检索、聚合与缓存全链路优化
大数据·elasticsearch·缓存·性能优化·es 读写原理
有毒的教程7 小时前
Ubuntu 清理 Docker 镜像 / 容器 / 缓存 完整教程
ubuntu·缓存·docker
羊小猪~~9 小时前
Redis学习笔记(数据类型、持久化、事件、管道、发布订阅等)
开发语言·数据库·c++·redis·后端·学习·缓存
tsyjjOvO11 小时前
Redis 从入门到集群搭建(续)
redis·后端·缓存
147API11 小时前
Claude Code 本地化实践:Prompt 缓存机制解析与国内接入成本优化
缓存·prompt·开发工具·降本增效
爱丽_14 小时前
缓存一致性:Cache Aside、双删/延迟双删、穿透/击穿/雪崩与 CDC
java·spring·缓存
StackNoOverflow14 小时前
Redis 核心知识梳理:主从复制、集群搭建与数据类型详解(二)
数据库·redis·缓存
星晨雪海14 小时前
缓存更新操作实例
java·spring·缓存
一直都在5721 天前
Redis (一)
数据库·redis·缓存
秦jh_1 天前
【Redis】客户端使用
数据库·redis·缓存