Open Closed

can not read data from IDistributedCache in HangfireBackgroundWorkerBase #4462


User avatar
0
ElifKaya created

Hi,

I want to delete data from cache by using HangfireBackgroundWorkerBase according to determined period. I could read cache data from manager but, I can not read from HangfireBackgroundWorkerBase with same cache key. How can I use cache data in backgrounjob worker.

Check the docs before asking a question: https://docs.abp.io/en/commercial/latest/ Check the samples, to see the basic tasks: https://docs.abp.io/en/commercial/latest/samples/index The exact solution to your question may have been answered before, please use the search on the homepage.

If you're creating a bug/problem report, please include followings:

  • ABP Framework version: v5.3.3
  • UI type: / MVC /
  • DB provider: EF Core /
  • Tiered (MVC) or Identity Server Separated (Angular): yes /
  • Exception message and stack trace:
  • Steps to reproduce the issue:"
Markdown supported.
Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)

6 Answer(s)
  • User Avatar
    0
    liangshiwei created
    Fullstack Developer

    Hi,

    Could you provide steps to reproduce the issue? thanks.

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    ElifKaya created

    Hi,

    Could you provide steps to reproduce the issue? thanks.

    I have get cache data in manager.cs and I can read data from appservice by using this manager method.I used same manager method in HangfireBackgroundWorkerBase, but

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    ElifKaya created

    Hi,

    Could you provide steps to reproduce the issue? thanks.

    I have get cache data in manager.cs and I can read data from appservice by using this manager method.I used same manager method in HangfireBackgroundWorkerBase, but

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    ElifKaya created

    Hi,

    Could you provide steps to reproduce the issue? thanks.

    I have get cache data in manager.cs and I can read data from appservice by using this manager method. No problem so far. I used same manager method in HangfireBackgroundWorkerBase, but get cache method result is always null.

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    liangshiwei created
    Fullstack Developer

    I will check it out

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    liangshiwei created
    Fullstack Developer

    Hi,

    I can't reproduce the problem. can you create a new project to reproduce the problem and share it with me? shiwei.liang@volosoft.com thanks.

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
Boost Your Development
ABP Live Training
Packages
See Trainings
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v10.8.0-preview. Updated on September 23, 2026, 09:57
1
ABP Assistant
🔐 You need to be logged in to use the chatbot. Please log in first.