# jt400-memcached

> Node modules jt400 with memcached implementation

Latest version **0.0.1** (published 2013-11-20) · 0 weekly downloads

## Install

```sh
npm install jt400-memcached
pnpm add jt400-memcached
yarn add jt400-memcached
bun add jt400-memcached
```

## Health

**Score 10/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; low quality score; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.1 |
| Published | 2013-11-20 |
| First published | 2013-11-20 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Paulo McNally |
| Maintainers | paulomcnally |
| Keywords | as400, IBM, java, db2, memcached |

## Links

- npm: https://www.npmjs.com/package/jt400-memcached
- Repository: https://github.com/paulomcnally/node-jt400-memcached
- Issues: https://github.com/paulomcnally/node-jt400-memcached/issues
- npm.io page: https://npm.io/package/jt400-memcached

## Dependencies (2)

- [jt400](https://npm.io/package/jt400.md) 0.0.1
- [memcached](https://npm.io/package/memcached.md) 0.2.6

## Alternatives

- [memory-cache](https://npm.io/package/memory-cache.md) — 795.0K weekly downloads
- [@httptoolkit/proxy-agent](https://npm.io/package/@httptoolkit/proxy-agent.md) — 11.2K weekly downloads
- [express-cache-controller](https://npm.io/package/express-cache-controller.md) — 5.3K weekly downloads
- [http-cache-middleware](https://npm.io/package/http-cache-middleware.md) — 4.5K weekly downloads
- [cache2](https://npm.io/package/cache2.md) — 1.5K weekly downloads

## Recent versions

- 0.0.1 (latest) — 2013-11-20

## README

# jt400 [![Dependency Status](https://david-dm.org/patriksimek/jt400-memcached.png)](https://david-dm.org/patriksimek/jt400-memcached) [![NPM version](https://badge.fury.io/js/jt400-memcached.png)](http://badge.fury.io/js/jt400-memcached)

[![NPM](https://nodei.co/npm/jt400-memcached.png)](https://nodei.co/npm/jt400/)

Connect with [jt400](https://npmjs.org/package/jt400) and implement [memcached](https://npmjs.org/package/memcached) in your projects.

Download [jt400.jar](http://sourceforge.net/projects/jt400-memcached/) and copy in your path.

More info: [http://jt400.sourceforge.net/](http://jt400.sourceforge.net/)


# Install
    npm install jt400-memcached

# app.js
    var sql = require('jt400-memcached');
    
    var connection = {
        libpath: __dirname + '/jt400.jar',
        drivername: 'com.ibm.as400.access.AS400JDBCDriver',
        url: 'jdbc:as400://127.0.0.1/myDatabase;user=myUser;password=myPassword'
    };
    
    sql.setMemcachedServers( '127.0.0.1:11211' );
    sql.debug( true );
    
    
    
    var test = new sql.prepare({
        query: 'SELECT foo FROM bar',
        connection: connection,
        cache: true,
        lifetime: 100
    });
    
    
    test.execute();
    
    test.success = function(data){
        console.log(data);
    };
    
    test.error = function(error){
        console.log(error);
    };

# Run
    node app.js

---
_Source: https://npm.io/package/jt400-memcached · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
