Skip to content

Proposal: deeper cache searches #21

@vreuter

Description

@vreuter

Sometimes I forget the subfolder to which I wrote a cache. Or even if not, I've explored the filesystem and have found the name that I want. Now I want to loadCaches() it. "Uh-oh...I need to successfully reconstruct the path to the folder that cache is inhabiting, relative to my RCACHE.DIR! Wait...what's my RCHACHE.DIR?! Calling getOption...that's just too much to handle."

Anyway, fun hypotheticals aside, it'd be cool to have some parameter like recursive (maybe even defaulting to TRUE) to allow simpleCache to explore the hierarchy rooted at RCACHE.DIR. listCaches() could implement this, and then simpleCache and loadCaches could call into that.

  • add deeper capability to listCaches
  • call into listCaches from loadCaches
  • call into listCaches from simpleCache (though possibly precluded by how loadCaches failure message #20 is handled)

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions