Android
Library that provides an internal caching layer.
Getting Started
- Installing
- Readme
- Changelog
- Add the dependency in your local build.gradle file:
implementation("com.huma.sdk:caching:<latest-version>")
- Initialize
HumaCachingManager
in your Application class:
HumaCachingManager.init()
Huma Android SDK uses Room library which provides an abstraction layer over SQLite to allow fluent database access for persisting data locally.
HumaCachingManager is a provider of an interface for interaction with local database.
HumaCachingManager module encapsulates logic of creating instance of Humadatabase
inherited from RoomDatabase
and defines interfaces for creating DAOs classes and entities converters.
There are major components for interaction with database using HumaCachingManager:
Data entity - class that represents tables in a database.
Data access object (DAO) - class provides methods for executing CRUD operations with data in the database.
Data object mapper - class defines methods to convert appropriate app's data class to data entity class.
Documentation