view release on metacpan or search on metacpan
lib/Apache/Session/Store/CacheAny.pm view on Meta::CPAN
}
$cache->set($session->{data}->{_session_id} => $session->{serialized});
}
sub update {
my($self, $session) = @_;
my $cache = $self->_cache($session);
$cache->set($session->{data}->{_session_id} => $session->{serialized});
}
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Apache/Session/Counted.pm view on Meta::CPAN
use strict;
sub new { bless {}, shift }
# write. Note that we alias insert and update
sub update {
my $self = shift;
my $session = shift;
my $storefile = $self->storefilename($session);
my $fh = gensym;
unless ( open $fh, ">$storefile\0" ) {
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Apache/Session/Store/DBMS.pm view on Meta::CPAN
};
$self->{dbms}->{$session->{data}->{_session_id}} = $session->{serialized}; # single session-id object
};
sub update {
my $self = shift;
my $session = shift;
return
if( $session->{isObjectPerKey} );
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Apache/Session/Store/LDAP.pm view on Meta::CPAN
$self->ldap->unbind() && delete $self->{ldap};
$self->logError($msg) if ( $msg->code );
}
sub update {
my $self = shift;
my $session = shift;
$self->{args} = $session->{args};
$self->{args}->{ldapObjectClass} ||= 'applicationProcess';
$self->{args}->{ldapAttributeId} ||= 'cn';
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Apache/Session/Store/MariaDB.pm view on Meta::CPAN
$self->{insert_sth}->finish;
}
sub update {
my $self = shift;
my $session = shift;
$self->connection($session);
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Apache/Session/Store/Memcached.pm view on Meta::CPAN
die "Object already exists in the data store.";
}
$self->{cache}->set($session->{data}->{_session_id},$session->{serialized});
}
sub update {
my($self,$session) = @_;
$self->{cache}->replace($session->{data}->{_session_id},$session->{serialized});
}
sub materialize {
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Apache/Session/Store/Memorycached.pm view on Meta::CPAN
$self->{opened} = 1;
}
sub update {
my $self = shift;
my $session = shift;
my $retour;
my $ryserver = $session->{args}->{servers};
my $ryserverlocal = $session->{args}->{local};
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Apache/Session/Store/MongoDB.pm view on Meta::CPAN
die('no id') unless ( $session->{data}->{_session_id} );
$session->{data}->{_id} = $session->{data}->{_session_id};
$self->{collection}->insert_one( $session->{data} );
}
sub update {
my ( $self, $session ) = splice @_;
$self->remove($session);
$self->insert($session);
}
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Apache/Session/Store/NoSQL.pm view on Meta::CPAN
sub insert {
my ( $self, $session ) = @_;
$self->{cache}->insert( $session );
}
sub update {
my ( $self, $session ) = @_;
$self->{cache}->update( $session );
}
sub materialize {
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Apache/Session/Store/PHP.pm view on Meta::CPAN
sub insert {
my($self, $session) = @_;
$self->_write($session, 1);
}
sub update {
my($self, $session) = @_;
$self->_write($session, 0);
}
sub _write {
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Apache/Session/Store/SQLite3.pm view on Meta::CPAN
$self->{insert_sth}->execute;
$self->{insert_sth}->finish;
}
sub update {
my $self = shift;
my $session = shift;
$self->connection($session);
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Apache/Session/Store/SharedMem.pm view on Meta::CPAN
my ($self, $session) = @_;
$self->{cache}->set($session->{data}->{_session_id}, $session->{serialized});
}
sub update {
my ($self, $session) = @_;
$self->{cache}->set($session->{data}->{_session_id}, $session->{serialized});
}
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Apache/Session/Store/libmemcached.pm view on Meta::CPAN
Replace a session id into memcached.
=cut
sub update {
my ($self, $session) = @_;
$self->_write_session(replace => $session);
}
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Apache/SiteConfig/Deploy.pm view on Meta::CPAN
my $args = $self->preprocess_meta;
say "Cleanning up $args->{site_dir}";
rmtree( $args->{site_dir} );
}
sub update {
my $self = shift;
my $args = $self->preprocess_meta;
if( $args->{source} ) {
chdir $args->{site_dir};
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Apache/Sling/LDAPSynch.pm view on Meta::CPAN
return $synch_cache;
}
#}}}
#{{{sub update_synch_cache
sub update_synch_cache {
my ( $class, $synch_cache ) = @_;
my ( $tmp_cache_file_handle, $tmp_cache_file_name ) =
File::Temp::tempfile();
print {$tmp_cache_file_handle}
Data::Dumper->Dump( [$synch_cache], [qw( synch_cache )] )
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Apache/Voodoo/Constants.pm view on Meta::CPAN
sub conf_path { return $_[0]->{CONF_PATH}; }
sub install_path { return $_[0]->{INSTALL_PATH}; }
sub prefix { return $_[0]->{PREFIX}; }
sub session_path { return $_[0]->{SESSION_PATH}; }
sub tmpl_path { return $_[0]->{TMPL_PATH}; }
sub updates_path { return $_[0]->{UPDATES_PATH}; }
sub debug_dbd { return $_[0]->{DEBUG_DBD}; }
sub debug_path { return $_[0]->{DEBUG_PATH}; }
sub use_log4perl { return $_[0]->{USE_LOG4PERL}; }
sub log4perl_conf { return $_[0]->{LOG4PERL_CONF}; }
view all matches for this distribution
view release on metacpan or search on metacpan
Wyrd/Services/Index.pm view on Meta::CPAN
=back
=cut
#attributes - integer=name (self_path), 0=reverse, 1=timestamp, 2=digest, 3=data, 4=word, 5=count, 6=title, 7=keywords, 8=description
sub update_entry {
my ($self, $entry) = @_;
$self->set_error = "Index entries must be objects " unless (ref($entry));
#localize debug value so that the entry can modify it.
my $debug = $self->debug;
$self->{'runtime_flags'} = {};
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Apache2/API/Response.pm view on Meta::CPAN
sub unescape { return( URI::Escape::uri_unescape( @_ ) ); }
# <https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Upgrade>
sub upgrade { return( shift->_set_get_multi( 'Upgrade', @_ ) ); }
sub update_mtime { return( shift->_try( '_request', 'update_mtime', @_ ) ); }
sub uri_escape { return( shift->escape( @_ ) ); }
sub uri_unescape { return( shift->unescape( @_ ) ); }
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Apache2/AuthAny/DB.pm view on Meta::CPAN
warn $dbHandle->errstr;
return undef;
}
}
sub updateUser {
my $self = shift;
my %user = @_;
my $existingUser = $self->getUserByUsername($user{username}) || {};
my $UID = $existingUser->{UID};
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Apache2/PageKit.pm view on Meta::CPAN
} else {
return join ('&', map { Apache2::Util::escape_path("$_", $apr->pool) ."=" . Apache2::Util::escape_path(defined($args->{$_}) ? $args->{$_} : "", $apr->pool)} keys %$args);
}
}
sub update_session {
my ($pk, $auth_session_id) = @_;
my $use_recent_login_timeout =
$pk->{config}->get_global_attr('use_recent_login_timeout') || 'yes';
return if ( $use_recent_login_timeout eq 'no' );
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Apache2/PodBrowser.pm view on Meta::CPAN
die \Apache2::Const::NOT_FOUND unless( length $name );
return $name;
}
sub update_finfo {
my ($r, $name)=@_;
$r->finfo(APR::Finfo::stat($name, APR::Const::FINFO_NORM,
$r->pool)) if defined $name;
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Apache2/Translation/BDB.pm view on Meta::CPAN
my $rc=!$I->_txn->txn_abort;
undef $I->_txn;
return $rc;
}
sub update {
my $I=shift;
my $old=shift;
my $new=shift;
my ($v, $c, $stat, $rc);
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Apache2/WebApp/Plugin/Session/File.pm view on Meta::CPAN
# update( \%controller, $arg, \%data );
#
# Takes the cookie unique identifier or session id as arguments. Updates
# existing session data.
sub update {
my ( $self, $c, $arg, $data_ref )
= validate_pos( @_,
{ type => OBJECT },
{ type => HASHREF },
{ type => SCALAR },
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Apache2/WebApp/Plugin/Session/Memcached.pm view on Meta::CPAN
# update(\%controller, $name, \%data);
#
# Takes the cookie unique identifier or session id as arguments. Updates
# existing session data.
sub update {
my ($self, $c, $name, $data_ref)
= validate_pos(@_,
{ type => OBJECT },
{ type => HASHREF },
{ type => SCALAR },
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Apache2/WebApp/Plugin/Session/MySQL.pm view on Meta::CPAN
# update( \%controller, $arg, \%data );
#
# Takes the cookie unique identifier or session id as arguments. Updates
# existing session data.
sub update {
my ( $self, $c, $arg, $data_ref )
= validate_pos( @_,
{ type => OBJECT },
{ type => HASHREF },
{ type => SCALAR },
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Apache2/WebApp/Plugin/Session.pm view on Meta::CPAN
#----------------------------------------------------------------------------+
# update(\%controller, $name, \%data)
#
# Update existing session data.
sub update {
my $self = shift;
$self->_init_new($_[0]);
$self->{OBJECT}->update(@_);
}
view all matches for this distribution
view release on metacpan or search on metacpan
lib/ApacheLog/Compressor.pm view on Meta::CPAN
Refresh the mapping from format keys and internal definitions.
=cut
sub update_mapping {
my $self = shift;
my %fmt = @{ $self->{format} };
$self->{format_hash} = \%fmt;
$self->{packet_handler} = {
0x00 => 'log',
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Apigee/Edge.pm view on Meta::CPAN
sub set_developer_status {
my ($self, $email, $status);
return $self->request('GET', "/o/" . $self->{org} . "/developers/" . uri_escape($email) . "?action=" . uri_escape($status));
}
sub update_developer { ## no critic (ArgUnpacking)
my $self = shift;
my $email = shift;
my %args = @_ % 2 ? %{$_[0]} : @_;
$email or croak "email is required.";
return $self->request('PUT', "/o/" . $self->{org} . "/developers/" . uri_escape($email), %args);
view all matches for this distribution