Closed izouxv closed 3 months ago
Thanks for your proposal.
Are you going to use this new feature in your project?
yes
my project is developing it is a app that without online server only the remote file system. this feature can support it
yes
my project is developing it is a app that without online server only the remote file system. this feature can support it
Thanks, but I think this is not a common feature for most users. But you can maintain this yourself. I don`t have enough motivation to add it to main branch.
ok
why i want to do this
kv db base on remote file system. many rosedb instant can r&w the db file without service. special for mobile app without backend service.
how do i do it
use afero.Fs to replace os.Fs. it can support local or remote fs, and any other type fs use Lock interface to replace local file lock. i can support local or remote lock use db interface to replace struct split the read write api of db api. write with the lock, read without lock