mirror of
				https://codeberg.org/yeentown/barkey.git
				synced 2025-10-30 21:14:12 +00:00 
			
		
		
		
	* chore: Add the SPDX information to each file Add copyright and licensing information as defined in version 3.0 of the REUSE Specification. * tweak format --------- Co-authored-by: syuilo <Syuilotan@yahoo.co.jp>
		
			
				
	
	
		
			15 lines
		
	
	
	
		
			350 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			15 lines
		
	
	
	
		
			350 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
| /*
 | |
|  * SPDX-FileCopyrightText: syuilo and other misskey contributors
 | |
|  * SPDX-License-Identifier: AGPL-3.0-only
 | |
|  */
 | |
| 
 | |
| import Redis from 'ioredis';
 | |
| import { loadConfig } from './built/config.js';
 | |
| 
 | |
| const config = loadConfig();
 | |
| const redis = new Redis(config.redis);
 | |
| 
 | |
| redis.on('connect', () => redis.disconnect());
 | |
| redis.on('error', (e) => {
 | |
| 	throw e;
 | |
| });
 |