{"id":13601211,"url":"https://github.com/perrich/Hangfire.MemoryStorage","last_synced_at":"2025-04-11T03:32:39.059Z","repository":{"id":32182554,"uuid":"35755995","full_name":"perrich/Hangfire.MemoryStorage","owner":"perrich","description":"A memory storage for Hangfire.","archived":false,"fork":false,"pushed_at":"2024-05-08T16:10:42.000Z","size":104,"stargazers_count":136,"open_issues_count":6,"forks_count":44,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-03-09T02:18:23.675Z","etag":null,"topics":["hangfire","memory-storage"],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/perrich.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2015-05-17T07:16:10.000Z","updated_at":"2025-01-06T02:30:38.000Z","dependencies_parsed_at":"2024-01-16T23:26:38.922Z","dependency_job_id":"44dbc548-d588-4f4e-b73a-a85755a064de","html_url":"https://github.com/perrich/Hangfire.MemoryStorage","commit_stats":{"total_commits":57,"total_committers":15,"mean_commits":3.8,"dds":0.5263157894736843,"last_synced_commit":"fe328d18dcc1d8965626eaaf64d52d2b823481aa"},"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/perrich%2FHangfire.MemoryStorage","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/perrich%2FHangfire.MemoryStorage/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/perrich%2FHangfire.MemoryStorage/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/perrich%2FHangfire.MemoryStorage/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/perrich","download_url":"https://codeload.github.com/perrich/Hangfire.MemoryStorage/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248335578,"owners_count":21086622,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["hangfire","memory-storage"],"created_at":"2024-08-01T18:00:58.657Z","updated_at":"2025-04-11T03:32:34.044Z","avatar_url":"https://github.com/perrich.png","language":"C#","funding_links":[],"categories":["C# #"],"sub_categories":[],"readme":"Hangfire.MemoryStorage\n========\n\nA memory storage for Hangfire (http://hangfire.io).\n\nIt can be useful for testing purpose like check the behaviour and use it in a development environment.\nPlease note that :\n* it should not be used in production (no integrity and no thread safe even if many cases are managed).\n* data are stored in memory using a dictionary in a static way (See Data created at the storage creation)\n* Hangfire has its own solution (see https://github.com/HangfireIO/Hangfire.InMemory)\n\nHow To use MemoryStorage\n---\n\nGlobalConfiguration.Configuration.UseMemoryStorage();\n\nExample: Set a job now and execute.\n\n#### Startup Class ####\n\n```csharp\n\npublic void ConfigureServices(IServiceCollection services)\n{   // Add This\n    services.AddHangfire(config =\u003e\n    {\n        config.UseMemoryStorage();\n    });\n}\n\n public void Configure(IApplicationBuilder app, IHostingEnvironment env)\n{   \n    // Add This\n    app.UseHangfireDashboard();\n    app.UseHangfireServer();\n}\n\n```\n\n```csharp\nstatic void Main(string[] args)\n{\n        \n   BackgroundJob.Enqueue(() =\u003e System.IO.File.WriteAllText(@\"..\\test.txt\",\"1\"));\n}\n```\n\n\n#### OutPut: ####\n\ntest.txt \u003cbr /\u003e\n1\n\n\n\n\nLicense:\n---\nCopyright 2015 - 2023 PERRICHOT Florian\n\n   Licensed under the Apache License, Version 2.0 (the \"License\");\n   you may not use this file except in compliance with the License.\n   You may obtain a copy of the License at\n\n       http://www.apache.org/licenses/LICENSE-2.0\n\n   Unless required by applicable law or agreed to in writing, software\n   distributed under the License is distributed on an \"AS IS\" BASIS,\n   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n   See the License for the specific language governing permissions and\n   limitations under the License.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fperrich%2FHangfire.MemoryStorage","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fperrich%2FHangfire.MemoryStorage","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fperrich%2FHangfire.MemoryStorage/lists"}