Can we send huge data (1 mb) as value under single key to Redis using lettuce? #2129
Unanswered
Pramit2512
asked this question in
Q&A
Replies: 3 comments
-
Can you provide the full stack trace? |
Beta Was this translation helpful? Give feedback.
0 replies
-
Hi Mark, My application is failing in build . So i am getting below build error:
Below is my code : |
Beta Was this translation helpful? Give feedback.
0 replies
-
I think you are hitting java limitations. Back many years ago I remember
seeing generated java files hitting a limit of 64k file size, but based on
the error message it sounds like there is a limit on string constant size.
You could just put the string content into a resource file and load from
the classpath instead.
…On Tue, Jun 28, 2022, 10:25 Pramit2512 ***@***.***> wrote:
Hi Mark,
My application is failing in build . So the build error which i am getting
below build error:
error: constant string too long redisAsyncCommands.set(mykey,"<ProductOffering>\n" +.....
Below is my code :
redisAsyncCommands.set(mykey,"my json data" +"
.........."+".............."+".......this continues with 29,000 lines of
data......"+"..");
—
Reply to this email directly, view it on GitHub
<#2129 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AMEBIKVQPEGAWGJJJQVWHRLVRMYSBANCNFSM52BFDMLA>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***
.com>
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I have a xml file of approx 1 megabyte and i want to send the content of xml as it is to redis under single key .Is there a way we can achieve this using lettuce library?
Currently when i am trying to send the data using below code :
I am getting error as "error: constant string too long".
Is there a way we can do this ? Or will i have to compress the file content and then send the data to redis?
Beta Was this translation helpful? Give feedback.
All reactions