Skip to content
This repository has been archived by the owner on Feb 10, 2018. It is now read-only.

Implement a stat interface #5

Open
scriptjs opened this issue Jan 31, 2018 · 2 comments
Open

Implement a stat interface #5

scriptjs opened this issue Jan 31, 2018 · 2 comments

Comments

@scriptjs
Copy link

Random access classes lack a generalized stat interface to obtain basic information about the store such as its size. In both file and memory implementations, a length property is available to be used in such an implementation. That said, an optional stat property should exist in the abstract for implementors to establish methods that conform to this API, so consumers can examine stats for their stores.

@juliangruber
Copy link
Member

Would it be possible for you to support this issue with some code or a specific use case?

@scriptjs
Copy link
Author

scriptjs commented Jan 31, 2018

@juliangruber I have been chatting with @mafintosh who has indicated he is taking the lead to rewrite the abstract random class. As a result, I must wait to see the next iteration of this class before proceeding. As far as the use case, my own is to help determine resource utilization for storages and archivers implementing random abstract.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants