Skip to content
This repository has been archived by the owner on Dec 9, 2021. It is now read-only.
/ cafu_kvs Public archive

📗 Simple file based key value store system

License

Notifications You must be signed in to change notification settings

umm/cafu_kvs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cafu_kvs

What

  • Simple key value data store system

Requirement

  • cafu_core

Install

yarn add "umm/cafu_kvs#^1.0.0"

Usage

var savePath = UnityEngine.Application.persistentDataPath + "/default.kv";
var repository = new DefaultKeyValueRepository.Factory().Create(savePath);

// Load & Get
repository.Load();
var entity = repository.GetEntity<SampleEntity>("key");

// Set & Save
repository.SetEntity<SampleEntity>("key", entity);
repository.Save();

License

Copyright (c) 2018 Takuma Maruyama

Released under the MIT license, see LICENSE.txt