1.1.8 • Published 5 years ago

redis-manager-utils v1.1.8

Weekly downloads
3
License
ISC
Repository
github
Last release
5 years ago

redis-manager-utils

Some main.js

const RMU = require( "redis-manager-utils" );
( async ()=> {
	console.log( "Starting" );
	var my_con_1 = new RMU( 1 );
	await my_con_1.init();
	module.exports.redisConProxy = my_con_1;
	console.log( await my_con_1.exists( "TESTING_KEY_1" ) );
	await require( "./test.js" ).tryTest( "TESTING_NEW_KEY_2" , "NEW_VALUE_2" );
	console.log( "Ending" );
	my_con_1.quit();
})();

test.js

function Try_Test( wKey , wVal ) {
	return new Promise( async function( resolve , reject ) {
		try {
			await require( "./main.js" ).redisConProxy.keySet( wKey , wVal );
			resolve();
		}
		catch( error ) { console.log( error ); reject( error ); }
	});
}
module.exports.tryTest = Try_Test;
1.1.8

5 years ago

1.1.7

5 years ago

1.1.6

5 years ago

1.1.5

6 years ago

1.1.4

6 years ago

1.1.3

6 years ago

1.1.2

6 years ago

1.1.1

6 years ago

1.1.0

6 years ago

1.0.19

6 years ago

1.0.18

6 years ago

1.0.17

6 years ago

1.0.16

6 years ago

1.0.15

6 years ago

1.0.14

6 years ago

1.0.13

6 years ago

1.0.12

6 years ago

1.0.11

6 years ago

1.0.10

6 years ago

1.0.9

6 years ago

1.0.8

6 years ago

1.0.7

6 years ago

1.0.6

6 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago