Open richfitz opened 6 years ago
A potential work-around is mangle_keys = TRUE
.
library(storr)
s1 <- storr_rds("temp/nomangle")
s2 <- storr_rds("temp/mangle", mangle_key = TRUE)
s1$set("Hello", "World!")
s1$set("hello", "world?")
s1$get("Hello")
#> [1] "world?"
s2$set("Hello", "World!")
s2$set("hello", "world?")
s2$get("Hello")
#> [1] "World!"
Created on 2018-10-24 by the reprex package (v0.2.1)
@AshesITR but mangle_keys = TRUE
is not going to help for large strings. Sometimes "path too long" error comes.
We're somewhat at the mercy of the filesystem here and checking is going to be potentially expensive. But this is far from ideal!