new feature: Add "last access time" to `Metadata`

Open
#6,587 2 comments 1 reaction 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
40/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
rust
Domain
backend

Research direction

Start by locating the Metadata type and the filesystem metadata implementations. Trace how metadata is collected and exposed, then identify the relevant filesystem tests or adapter coverage. Done means Metadata can optionally carry last_access_time for filesystem backends, with unsupported sources remaining representable as None.

Written by the indexing model from the issue text.

Description

enhancement releases-note/feat services/fs
Feature Description

Metadata should have an optional last_access_time field.

Problem and Solution

When implementing a bounded file cache, it's useful to be able to prioritize garbage collection based on access time. I believe most filesystems support this metadata, but regardless we can provide it as an Option.

I would add support for filesystems first. I'm not sure how many object stores could support it.

Additional Context

No response

Are you willing to contribute to the development of this feature?
  • Yes, I am willing to contribute to the development of this feature.
Dominant language
Rust
Stars
5.5k
Forks
869
Avg merge
8h 2m
Merged PRs (30d)
862

Getting set up

Open in Codespaces

Starts the project's dev container in your browser, under your own GitHub account.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from apache/opendal

All issues in apache/opendal

Similar issues

More Rust issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.