-
Notifications
You must be signed in to change notification settings - Fork 30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow storing raw strings, not the whole Nebulex.Object.t()
#15
Comments
Proposed solutionSupporting for "data types" starting with strings. Two additional options:
Usage ExampleCache.set("foo", "bar", dt: :string)
# the string dt is applied to all given values
Cache.set_many(%{"a" => "a", "b" => "b"}, dt: :string) Globally: config :my_app, MyApp.Cache,
default_data_type: :string |
[#15] Allow storing raw strings, not the whole `Nebulex.Object.t()`
Currently, bay default, all values except the counters are stored as
Nebulex.Object.t()
(before to put the data on Redis, the object is encoded as binary). The idea is to allow storing raw strings, not within the object, and improve the memory consumption for string data types.The text was updated successfully, but these errors were encountered: