CacheBean 模块是基于注解处理器的对象缓存框架,提供自动生成的对象缓存和序列化功能。
@CacheBean
data class UserInfo(
val id: String,
val name: String,
val avatar: String
)
// 自动生成缓存操作
UserInfoCache.put("key", userInfo)
val cached = UserInfoCache.get("key")
implementation "com.wenext.android:frame-cachebean-api:6.0.0"
kapt "com.wenext.android:frame-cachebean-compiler:6.0.0"