@@ -268,19 +268,19 @@ def func_wrapper(*args, **kwds):
268268 _print ("No entry found. No current calc. Calling like a boss." )
269269 return _calc_entry (core , key , func , args , kwds )
270270
271- def clear_cache ():
271+ def _clear_cache ():
272272 """Clear the cache."""
273273 core .clear_cache ()
274274
275- def clear_being_calculated ():
275+ def _clear_being_calculated ():
276276 """Marks all entries in this cache as not being calculated."""
277277 core .clear_being_calculated ()
278278
279- def cache_dpath ():
279+ def _cache_dpath ():
280280 """Returns the path to the cache dir, if exists; None if not."""
281281 return getattr (core , "cache_dir" , None )
282282
283- def precache_value (* args , value_to_cache , ** kwds ):
283+ def _precache_value (* args , value_to_cache , ** kwds ):
284284 """Add an initial value to the cache.
285285
286286 Arguments
@@ -295,10 +295,10 @@ def precache_value(*args, value_to_cache, **kwds):
295295 )
296296 return core .precache_value (tuple (), kwargs , value_to_cache )
297297
298- func_wrapper .clear_cache = clear_cache
299- func_wrapper .clear_being_calculated = clear_being_calculated
300- func_wrapper .cache_dpath = cache_dpath
301- func_wrapper .precache_value = precache_value
298+ func_wrapper .clear_cache = _clear_cache
299+ func_wrapper .clear_being_calculated = _clear_being_calculated
300+ func_wrapper .cache_dpath = _cache_dpath
301+ func_wrapper .precache_value = _precache_value
302302 return func_wrapper
303303
304304 return _cachier_decorator
0 commit comments