infinispan / infinispan/python-client
Writing python object to remote cache
- Dominant language
- C++
- Stars
- 17
- Forks
- 12
- PR merge metrics
- No merged PRs in 30d
Description
I have a SampleObject in python which i am trying to write to remoteCache using:
objtemp1 = SampleObject()
cache.put("sampleObject" + str(x) , objtemp1)
But, it gives me this error:
File "/python-client-master/infinispan/**init**.py", line 62, in
to_varint(len(v)) + v
TypeError: cannot concatenate 'str' and 'SampleObject' objects
I think it is something related to serialization of python object. Can someone help with the error and possible solution.
Thanks,
Sonal
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with python-client/__init__.py at line 62 and trace the cache.put("sampleObject" + str(x), objtemp1) path. Reproduce the TypeError with SampleObject and determine the project's supported serialization behavior. Done should be a documented or implemented resolution for writing Python objects to the remote cache, with a test or example showing the result.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- distributed-systems
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100