mirror of
				https://github.com/searxng/searxng
				synced 2024-01-01 19:24:07 +01:00 
			
		
		
		
	 6e2872f436
			
		
	
	
		6e2872f436
		
	
	
	
	
		
			
			shared dictionary between the workers (UWSGI or werkzeug) scheduler: run a task once every x seconds (UWSGI or werkzeug)
		
			
				
	
	
		
			15 lines
		
	
	
	
		
			246 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			15 lines
		
	
	
	
		
			246 B
		
	
	
	
		
			Python
		
	
	
	
	
	
| # SPDX-License-Identifier: AGPL-3.0-or-later
 | |
| 
 | |
| class SharedDict:
 | |
| 
 | |
|     def get_int(self, key):
 | |
|         pass
 | |
| 
 | |
|     def set_int(self, key, value):
 | |
|         pass
 | |
| 
 | |
|     def get_str(self, key):
 | |
|         pass
 | |
| 
 | |
|     def set_str(self, key, value):
 | |
|         pass
 |