umm / cafu_kvs

:green_book: Simple file based key value store system
MIT License
0 stars 0 forks source link
umm

cafu_kvs

What

Requirement

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