Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 953951
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T00:08:01+00:00 2026-05-16T00:08:01+00:00

I want to cache an dto, that I get consuming an api, in the

  • 0

I want to cache an dto, that I get consuming an api, in the whole request. I try to access the request variable in a service, but it don’t work.

Also I had tried to create a service with request scope but it has a error in bean creation stage in spring.

Some thing like this: http://jira.codehaus.org/browse/GRAILS-4148

Can you give me any pointer?

  • 1 1 Answer
  • 1 View
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T00:08:01+00:00Added an answer on May 16, 2026 at 12:08 am
    1. request variable presents only in controllers.
    2. You have an error because your program has no idea how to initialize request variable in service.

    You are free to pass request variable to any service method as parameter.

    You have 2 cache solution:

    1. Use EhCache to cache hibernate queries.
    2. Use SpringCache to cache entire methods(returned result).

    P.S. I’m not a big expert in EhCache + Grails bundle but on my opinion – SprigCache is much more flexible (adjustable) than EhCache but those two providers have very different use purposes. And keep in mind that SpringCache is based on EhCache 🙂

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to cache a webpage as an image upon a user request, but
I want to use cache-money but I don't want to start automatically caching everything
I want to cache query results so that the same results are fetched for
Background I want to access the cache of Chrome and Firefox in my Cocoa
I want to cache javascript libraries and other static assets - but no HTML
I want to cache a number of php pages that display different data at
I want to cache my loaded data so that I can reduce my application
I want to cache large HTML pages in an SQLite database as blobs, but
How can I cache variables in ASP.NET on page level? That is, I want
We want to cache bust on production deploys, but not waste a bunch of

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.