Skip to content

p208p2002/py-classification-cache

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Python分類快取

  • 非常易用的Python快取
  • 適合處理零碎的小快取
  • 使用字首進行分類
  • 支持中文檔名

Install

pip install py-classification-cache

Usage

Import

import py_classification_cache as pycc
pyCahce = pycc.PCC()

Order cache saving path

pyCahce = pycc.PCC(cache_dir="CACHE_DIR_PATH")

Save and get

pyCache.save("array",[1,2,3])
pyCache.save("dic",{"key1":1,"key2":2})
pyCache.get("array") # [1,2,3]
pyCache.get("dic") # {"key1":1,"key2":2}

Remove and clear

pyCache.remove("KEY") # remove key
py.Cache.clearCache() # remove all cache

About

Python分類快取 / py_classification_cache / pycc

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages