Commit fbe564a1 by Sartika Aritonang

Upload New File

parent fdb815bb
from Sastrawi.Stemmer.Cache.CacheInterface import CacheInterface
class ArrayCache(CacheInterface):
"""description of class"""
def __init__(self):
self.data = {}
def set(self, key, value):
self.data[key] = value
def get(self, key):
if key in self.data:
return self.data[key]
def has(self, key):
return key in self.data
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment