Hashes store value in bytes
See original GitHub issueIssue Description
I am just started using the Walrus Redis for storing the data in memory with Hash Container. An example is given in the link
>>> h = db.Hash('charlie')
>>> h.update(name='Charlie', favorite_cat='Huey')
<Hash "charlie": {'name': 'Charlie', 'favorite_cat': 'Huey'}>
I tryied the above example, but is storing in bytes for me
>>> h = db.Hash('abc')
>>> h.update(name='ABC', favorite_cat='Huey')
<Hash "abc": {b'name': b'ABC', b'favorite_cat': b'Huey'}>
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
c# - save hash value in the database - Stack Overflow
Currently you're just returning the decimal representation of all the bytes, concatenated together. So { 0, 0, 0 } ends up as "000"...
Read more >Ensuring Data Integrity with Hash Codes - Microsoft Learn
Learn how to ensure data integrity using hash codes in .NET. A hash value is a numeric value of a fixed length that...
Read more >Hash function - Wikipedia
A hash function is any function that can be used to map data of arbitrary size to fixed-size values. The values returned by...
Read more >The HashBytes function in T-SQL
The HashBytes function accepts two values: the algorithm to use and the value to get the hash for. The HashBytes system function does...
Read more >How to store IPFS hash using bytes32?
Your example shows storing an IPFS identity using it's alphanumeric encoding ( Qm... ), which is the same Base58 encoding that Bitcoin uses....
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I am facing problem at the time of fetching the value from the hash, it is not returning Dict value.